Searched refs:dpot (Results 1 – 4 of 4) sorted by relevance
/drivers/misc/ |
D | ad525x_dpot.c | 96 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument 98 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8() 101 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8() argument 103 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8() 106 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16() argument 108 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16() 111 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8() argument 113 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8() 116 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8() argument 118 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8() [all …]
|
/drivers/iio/dac/ |
D | dpot-dac.c | 39 struct iio_channel *dpot; member 62 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw() 65 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw() 105 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail() 119 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw() 141 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms() 147 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms() 191 dac->dpot = devm_iio_channel_get(dev, "dpot"); in dpot_dac_probe() 192 if (IS_ERR(dac->dpot)) in dpot_dac_probe() 193 return dev_err_probe(&pdev->dev, PTR_ERR(dac->dpot), in dpot_dac_probe() [all …]
|
D | Makefile | 31 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
|
D | Kconfig | 262 called dpot-dac.
|