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()
178 static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg) in dpot_read_i2c()
232 static s32 dpot_read(struct dpot_data *dpot, u8 reg) in dpot_read()
240 static s32 dpot_write_spi(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_spi()
329 static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write_i2c()
404 static s32 dpot_write(struct dpot_data *dpot, u8 reg, u16 value) in dpot_write()
418 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_show_reg()
449 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_set_reg()
488 struct dpot_data *data = dev_get_drvdata(dev); in sysfs_do_cmd()
686 struct dpot_data *data; in ad_dpot_probe()
689 data = kzalloc_obj(struct dpot_data); in ad_dpot_probe()
747 struct dpot_data *data = dev_get_drvdata(dev); in ad_dpot_remove()