summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-06-24 08:39:53 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-30 17:30:03 -0400
commit4280e0b42bd590316a048d66ea356e78c5d0464e (patch)
tree838184bb11f7e14d3c1054d326ba2bf7b4261fa8 /include
parent443c6ae253e96db9a5800a28d7c61131e81c2dee (diff)
regulator: max8998: Use arrays for specifying voltages in platform data
This patch modifies the platform data of max8998 to use arrays for specifying predefined voltages of buck1 and buck2 instead of separate field for each voltage. This allows to simplify the code a bit and will help in adding support for Device Tree, which will be introduced in further patch. Signed-off-by: Tomasz Figa <t.figa@samsung.com> Acked-by: Mark Brown <broonie@linaro.org> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/max8998.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/include/linux/mfd/max8998.h b/include/linux/mfd/max8998.h
index 75471183b87a..ca56bb03bc69 100644
--- a/include/linux/mfd/max8998.h
+++ b/include/linux/mfd/max8998.h
@@ -73,12 +73,8 @@ struct max8998_regulator_data {
73 * @buck_voltage_lock: Do NOT change the values of the following six 73 * @buck_voltage_lock: Do NOT change the values of the following six
74 * registers set by buck?_voltage?. The voltage of BUCK1/2 cannot 74 * registers set by buck?_voltage?. The voltage of BUCK1/2 cannot
75 * be other than the preset values. 75 * be other than the preset values.
76 * @buck1_voltage1: BUCK1 DVS mode 1 voltage register 76 * @buck1_voltage: BUCK1 DVS mode 1 voltage registers
77 * @buck1_voltage2: BUCK1 DVS mode 2 voltage register 77 * @buck2_voltage: BUCK2 DVS mode 2 voltage registers
78 * @buck1_voltage3: BUCK1 DVS mode 3 voltage register
79 * @buck1_voltage4: BUCK1 DVS mode 4 voltage register
80 * @buck2_voltage1: BUCK2 DVS mode 1 voltage register
81 * @buck2_voltage2: BUCK2 DVS mode 2 voltage register
82 * @buck1_set1: BUCK1 gpio pin 1 to set output voltage 78 * @buck1_set1: BUCK1 gpio pin 1 to set output voltage
83 * @buck1_set2: BUCK1 gpio pin 2 to set output voltage 79 * @buck1_set2: BUCK1 gpio pin 2 to set output voltage
84 * @buck1_default_idx: Default for BUCK1 gpio pin 1, 2 80 * @buck1_default_idx: Default for BUCK1 gpio pin 1, 2
@@ -103,12 +99,8 @@ struct max8998_platform_data {
103 unsigned int irq_base; 99 unsigned int irq_base;
104 int ono; 100 int ono;
105 bool buck_voltage_lock; 101 bool buck_voltage_lock;
106 int buck1_voltage1; 102 int buck1_voltage[4];
107 int buck1_voltage2; 103 int buck2_voltage[2];
108 int buck1_voltage3;
109 int buck1_voltage4;
110 int buck2_voltage1;
111 int buck2_voltage2;
112 int buck1_set1; 104 int buck1_set1;
113 int buck1_set2; 105 int buck1_set2;
114 int buck1_default_idx; 106 int buck1_default_idx;