Home
last modified time | relevance | path

Searched refs:dpot (Results 1 – 5 of 5) sorted by relevance

/linux-4.19.296/drivers/misc/
Dad525x_dpot.c97 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument
99 return dpot->bdata.bops->read_d8(dpot->bdata.client); in dpot_read_d8()
102 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8() argument
104 return dpot->bdata.bops->read_r8d8(dpot->bdata.client, reg); in dpot_read_r8d8()
107 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16() argument
109 return dpot->bdata.bops->read_r8d16(dpot->bdata.client, reg); in dpot_read_r8d16()
112 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8() argument
114 return dpot->bdata.bops->write_d8(dpot->bdata.client, val); in dpot_write_d8()
117 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8() argument
119 return dpot->bdata.bops->write_r8d8(dpot->bdata.client, reg, val); in dpot_write_r8d8()
[all …]
/linux-4.19.296/drivers/iio/dac/
Ddpot-dac.c42 struct iio_channel *dpot; member
65 return iio_read_channel_raw(dac->dpot, val); in dpot_dac_read_raw()
68 ret = iio_read_channel_scale(dac->dpot, val, val2); in dpot_dac_read_raw()
107 return iio_read_avail_channel_raw(dac->dpot, vals, length); in dpot_dac_read_avail()
121 return iio_write_channel_raw(dac->dpot, val); in dpot_dac_write_raw()
143 ret = iio_read_max_channel_raw(dac->dpot, &max); in dpot_dac_channel_max_ohms()
149 switch (iio_read_channel_scale(dac->dpot, &val, &val2)) { in dpot_dac_channel_max_ohms()
196 dac->dpot = devm_iio_channel_get(dev, "dpot"); in dpot_dac_probe()
197 if (IS_ERR(dac->dpot)) { in dpot_dac_probe()
198 if (PTR_ERR(dac->dpot) != -EPROBE_DEFER) in dpot_dac_probe()
[all …]
DMakefile29 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
DKconfig249 called dpot-dac.
/linux-4.19.296/
DMAINTAINERS7140 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac
7141 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.txt
7142 F: drivers/iio/dac/dpot-dac.c