aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/tps6507x.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6507x.h b/include/linux/mfd/tps6507x.h
index fd73af5fb95a..9543cb716428 100644
--- a/include/linux/mfd/tps6507x.h
+++ b/include/linux/mfd/tps6507x.h
@@ -131,6 +131,8 @@
131/* VDCDC MASK */ 131/* VDCDC MASK */
132#define TPS6507X_DEFDCDCX_DCDC_MASK 0X3F 132#define TPS6507X_DEFDCDCX_DCDC_MASK 0X3F
133 133
134#define TPS6507X_MAX_REGISTER 0X19
135
134/** 136/**
135 * struct tps6507x_board - packages regulator and touchscreen init data 137 * struct tps6507x_board - packages regulator and touchscreen init data
136 * @tps6507x_regulator_data: regulator initialization values 138 * @tps6507x_regulator_data: regulator initialization values
@@ -142,4 +144,24 @@ struct tps6507x_board {
142 struct regulator_init_data *tps6507x_pmic_init_data; 144 struct regulator_init_data *tps6507x_pmic_init_data;
143}; 145};
144 146
147/**
148 * struct tps6507x_dev - tps6507x sub-driver chip access routines
149 * @read_dev() - I2C register read function
150 * @write_dev() - I2C register write function
151 *
152 * Device data may be used to access the TPS6507x chip
153 */
154
155struct tps6507x_dev {
156 struct device *dev;
157 struct i2c_client *i2c_client;
158 int (*read_dev)(struct tps6507x_dev *tps6507x, char reg, int size,
159 void *dest);
160 int (*write_dev)(struct tps6507x_dev *tps6507x, char reg, int size,
161 void *src);
162
163 /* Client devices */
164 struct tps6507x_pmic *pmic;
165};
166
145#endif /* __LINUX_MFD_TPS6507X_H */ 167#endif /* __LINUX_MFD_TPS6507X_H */