diff options
Diffstat (limited to 'include/linux/mfd/tps6105x.h')
-rw-r--r-- | include/linux/mfd/tps6105x.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/tps6105x.h b/include/linux/mfd/tps6105x.h index f259244a56bd..386743dd931c 100644 --- a/include/linux/mfd/tps6105x.h +++ b/include/linux/mfd/tps6105x.h | |||
@@ -10,6 +10,7 @@ | |||
10 | #define MFD_TPS6105X_H | 10 | #define MFD_TPS6105X_H |
11 | 11 | ||
12 | #include <linux/i2c.h> | 12 | #include <linux/i2c.h> |
13 | #include <linux/regulator/machine.h> | ||
13 | 14 | ||
14 | /* | 15 | /* |
15 | * Register definitions to all subdrivers | 16 | * Register definitions to all subdrivers |
@@ -71,20 +72,25 @@ enum tps6105x_mode { | |||
71 | * struct tps6105x_platform_data - TPS61905x platform data | 72 | * struct tps6105x_platform_data - TPS61905x platform data |
72 | * @mode: what mode this instance shall be operated in, | 73 | * @mode: what mode this instance shall be operated in, |
73 | * this is not selectable at runtime | 74 | * this is not selectable at runtime |
75 | * @regulator_data: initialization data for the voltage | ||
76 | * regulator if used as a voltage source | ||
74 | */ | 77 | */ |
75 | struct tps6105x_platform_data { | 78 | struct tps6105x_platform_data { |
76 | enum tps6105x_mode mode; | 79 | enum tps6105x_mode mode; |
80 | struct regulator_init_data *regulator_data; | ||
77 | }; | 81 | }; |
78 | 82 | ||
79 | /** | 83 | /** |
80 | * struct tps6105x - state holder for the TPS6105x drivers | 84 | * struct tps6105x - state holder for the TPS6105x drivers |
81 | * @mutex: mutex to serialize I2C accesses | 85 | * @mutex: mutex to serialize I2C accesses |
82 | * @i2c_client: corresponding I2C client | 86 | * @i2c_client: corresponding I2C client |
87 | * @regulator: regulator device if used in voltage mode | ||
83 | */ | 88 | */ |
84 | struct tps6105x { | 89 | struct tps6105x { |
85 | struct tps6105x_platform_data *pdata; | 90 | struct tps6105x_platform_data *pdata; |
86 | struct mutex lock; | 91 | struct mutex lock; |
87 | struct i2c_client *client; | 92 | struct i2c_client *client; |
93 | struct regulator_dev *regulator; | ||
88 | }; | 94 | }; |
89 | 95 | ||
90 | extern int tps6105x_set(struct tps6105x *tps6105x, u8 reg, u8 value); | 96 | extern int tps6105x_set(struct tps6105x *tps6105x, u8 reg, u8 value); |