Lines Matching defs:dpot_data
83 struct dpot_data {
96 static inline int dpot_read_d8(struct dpot_data *dpot)
101 static inline int dpot_read_r8d8(struct dpot_data *dpot, u8 reg)
106 static inline int dpot_read_r8d16(struct dpot_data *dpot, u8 reg)
111 static inline int dpot_write_d8(struct dpot_data *dpot, u8 val)
116 static inline int dpot_write_r8d8(struct dpot_data *dpot, u8 reg, u16 val)
121 static inline int dpot_write_r8d16(struct dpot_data *dpot, u8 reg, u16 val)
126 static s32 dpot_read_spi(struct dpot_data *dpot, u8 reg)
154 static s32 dpot_read_i2c(struct dpot_data *dpot, u8 reg)
189 static s32 dpot_read(struct dpot_data *dpot, u8 reg)
197 static s32 dpot_write_spi(struct dpot_data *dpot, u8 reg, u16 value)
257 static s32 dpot_write_i2c(struct dpot_data *dpot, u8 reg, u16 value)
324 static s32 dpot_write(struct dpot_data *dpot, u8 reg, u16 value)
338 struct dpot_data *data = dev_get_drvdata(dev);
371 struct dpot_data *data = dev_get_drvdata(dev);
410 struct dpot_data *data = dev_get_drvdata(dev);
607 struct dpot_data *data;
610 data = kzalloc(sizeof(struct dpot_data), GFP_KERNEL);
668 struct dpot_data *data = dev_get_drvdata(dev);