Skip to content

Commit 39cdbe8

Browse files
krzkLee Jones
authored andcommitted
mfd: sec: Remove unused platform data members
The Samsung PMIC drivers for early chipsets like S5M8767 stored quite a lot in platform data (struct sec_platform_data). The s5m8767 regulator driver currently references only some of its fields. Newer regulator drivers (e.g. s2mps11) use even less platform data fields. Clean up the structure to reduce memory footprint and source code size. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent 2056f02 commit 39cdbe8

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

  • include/linux/mfd/samsung

‎include/linux/mfd/samsung/core.h‎

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ struct sec_platform_data {
8080
struct sec_opmode_data *opmode;
8181
int num_regulators;
8282

83-
bool buck_voltage_lock;
84-
8583
int buck_gpios[3];
8684
int buck_ds[3];
8785
unsigned int buck2_voltage[8];
@@ -91,35 +89,12 @@ struct sec_platform_data {
9189
unsigned int buck4_voltage[8];
9290
bool buck4_gpiodvs;
9391

94-
int buck_set1;
95-
int buck_set2;
96-
int buck_set3;
97-
int buck2_enable;
98-
int buck3_enable;
99-
int buck4_enable;
10092
int buck_default_idx;
101-
int buck2_default_idx;
102-
int buck3_default_idx;
103-
int buck4_default_idx;
104-
10593
int buck_ramp_delay;
10694

107-
int buck2_ramp_delay;
108-
int buck34_ramp_delay;
109-
int buck5_ramp_delay;
110-
int buck16_ramp_delay;
111-
int buck7810_ramp_delay;
112-
int buck9_ramp_delay;
113-
int buck24_ramp_delay;
114-
int buck3_ramp_delay;
115-
int buck7_ramp_delay;
116-
int buck8910_ramp_delay;
117-
118-
bool buck1_ramp_enable;
11995
bool buck2_ramp_enable;
12096
bool buck3_ramp_enable;
12197
bool buck4_ramp_enable;
122-
bool buck6_ramp_enable;
12398

12499
int buck2_init;
125100
int buck3_init;

0 commit comments

Comments
 (0)