H A D | mcp3911.c | 106 int (*config)(struct mcp3911 *adc, bool external_vref); 107 int (*get_osr)(struct mcp3911 *adc, u32 *val); 108 int (*set_osr)(struct mcp3911 *adc, u32 val); 109 int (*enable_offset)(struct mcp3911 *adc, bool enable); 110 int (*get_offset)(struct mcp3911 *adc, int channel, int *val); 111 int (*set_offset)(struct mcp3911 *adc, int channel, int val); 112 int (*set_scale)(struct mcp3911 *adc, int channel, u32 val); 132 static int mcp3911_read(struct mcp3911 *adc, u8 reg, u32 *val, u8 len) in mcp3911_read() argument 136 reg = MCP3911_REG_READ(reg, adc->dev_addr); in mcp3911_read() 137 ret = spi_write_then_read(adc in mcp3911_read() 148 mcp3911_write(struct mcp3911 * adc,u8 reg,u32 val,u8 len) mcp3911_write() argument 159 mcp3911_update(struct mcp3911 * adc,u8 reg,u32 mask,u32 val,u8 len) mcp3911_update() argument 173 mcp3910_enable_offset(struct mcp3911 * adc,bool enable) mcp3910_enable_offset() argument 181 mcp3910_get_offset(struct mcp3911 * adc,int channel,int * val) mcp3910_get_offset() argument 186 mcp3910_set_offset(struct mcp3911 * adc,int channel,int val) mcp3910_set_offset() argument 197 mcp3911_enable_offset(struct mcp3911 * adc,bool enable) mcp3911_enable_offset() argument 205 mcp3911_get_offset(struct mcp3911 * adc,int channel,int * val) mcp3911_get_offset() argument 210 mcp3911_set_offset(struct mcp3911 * adc,int channel,int val) mcp3911_set_offset() argument 221 mcp3910_get_osr(struct mcp3911 * adc,u32 * val) mcp3910_get_osr() argument 235 mcp3910_set_osr(struct mcp3911 * adc,u32 val) mcp3910_set_osr() argument 243 mcp3911_set_osr(struct mcp3911 * adc,u32 val) mcp3911_set_osr() argument 251 mcp3911_get_osr(struct mcp3911 * adc,u32 * val) mcp3911_get_osr() argument 265 mcp3910_set_scale(struct mcp3911 * adc,int channel,u32 val) mcp3910_set_scale() argument 272 mcp3911_set_scale(struct mcp3911 * adc,int channel,u32 val) mcp3911_set_scale() argument 318 struct mcp3911 *adc = iio_priv(indio_dev); mcp3911_read_raw() local 356 struct mcp3911 *adc = iio_priv(indio_dev); mcp3911_write_raw() local 490 struct mcp3911 *adc = iio_priv(indio_dev); mcp3911_trigger_handler() local 534 mcp3911_config(struct mcp3911 * adc,bool external_vref) mcp3911_config() argument 600 mcp3910_config(struct mcp3911 * adc,bool external_vref) mcp3910_config() argument 669 struct mcp3911 *adc = iio_trigger_get_drvdata(trig); mcp3911_set_trigger_state() local 688 struct mcp3911 *adc; mcp3911_probe() local [all...] |