aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-03-09 07:02:55 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2011-03-23 05:42:09 -0400
commit2edd3b692404efc2d3915175a2ed553e783de763 (patch)
treec2a6d4632ec08b567c24e345d638e656462c0135 /include/linux/mfd
parent798a8eee44da56b4f2e000ff81dfb49d09c65b71 (diff)
regulator: Add a subdriver for TI TPS6105x regulator portions v2
This adds a subdriver for the regulator found inside the TPS61050 and TPS61052 chips. Cc: Samuel Ortiz <samuel.ortiz@intel.com> Cc: Ola Lilja <ola.o.lilja@stericsson.com> Cc: Jonas Aberg <jonas.aberg@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/tps6105x.h6
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 */
75struct tps6105x_platform_data { 78struct 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 */
84struct tps6105x { 89struct 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
90extern int tps6105x_set(struct tps6105x *tps6105x, u8 reg, u8 value); 96extern int tps6105x_set(struct tps6105x *tps6105x, u8 reg, u8 value);