Lines Matching refs:dpot_data
83 struct dpot_data { struct
96 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument
101 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8()
106 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16()
111 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8()
116 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8()
121 static inline int dpot_write_r8d16(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d16()
126 static s32 dpot_read_spi(struct dpot_data *dpot, u8 reg) in dpot_read_spi()
174 static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg) in dpot_read_i2c()
228 static s32 dpot_read(struct dpot_data *dpot, u8 reg) in dpot_read()
236 static s32 dpot_write_spi(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_spi()
325 static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_i2c()
400 static s32 dpot_write(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write()
414 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_show_reg()
447 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_set_reg()
486 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_do_cmd()
684 struct dpot_data *data; in ad_dpot_probe()
687 data = kzalloc(sizeof(struct dpot_data), GFP_KERNEL); in ad_dpot_probe()
745 struct dpot_data *data = dev_get_drvdata(dev); in ad_dpot_remove()