Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/misc/
Dad525x_dpot.c96 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 …]
/Linux-v6.6/drivers/iio/dac/
Ddpot-dac.c39 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 …]
DMakefile33 obj-$(CONFIG_DPOT_DAC) += dpot-dac.o
DKconfig294 called dpot-dac.
/Linux-v6.6/arch/arm/boot/dts/microchip/
Dat91-tse850-3.dts61 dac: dpot-dac {
62 compatible = "dpot-dac";
64 io-channels = <&dpot 0>;
65 io-channel-names = "dpot";
207 dpot: mcp4651-104@28 { label
/Linux-v6.6/Documentation/misc-devices/
Dad525x_dpot.rst16 Each dpot device will have a set of eeprom, rdac, and tolerance files. How
/Linux-v6.6/
DMAINTAINERS10164 F: Documentation/ABI/testing/sysfs-bus-iio-dac-dpot-dac
10165 F: Documentation/devicetree/bindings/iio/dac/dpot-dac.yaml
10166 F: drivers/iio/dac/dpot-dac.c