Lines Matching refs:dpot_data
84 struct dpot_data { struct
97 static inline int dpot_read_d8(struct dpot_data *dpot) in dpot_read_d8() argument
102 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg) in dpot_read_r8d8()
107 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg) in dpot_read_r8d16()
112 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val) in dpot_write_d8()
117 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d8()
122 static inline int dpot_write_r8d16(struct dpot_data *dpot, u8 reg, u16 val) in dpot_write_r8d16()
127 static s32 dpot_read_spi(struct dpot_data *dpot, u8 reg) in dpot_read_spi()
175 static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg) in dpot_read_i2c()
231 static s32 dpot_read(struct dpot_data *dpot, u8 reg) in dpot_read()
239 static s32 dpot_write_spi(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_spi()
328 static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_i2c()
403 static s32 dpot_write(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write()
417 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_show_reg()
450 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_set_reg()
489 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_do_cmd()
687 struct dpot_data *data; in ad_dpot_probe()
690 data = kzalloc(sizeof(struct dpot_data), GFP_KERNEL); in ad_dpot_probe()
748 struct dpot_data *data = dev_get_drvdata(dev); in ad_dpot_remove()