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.kozlow...@canonical.com>
---
 include/linux/mfd/samsung/core.h | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/include/linux/mfd/samsung/core.h b/include/linux/mfd/samsung/core.h
index b0d049a56d16..f92fe090473d 100644
--- a/include/linux/mfd/samsung/core.h
+++ b/include/linux/mfd/samsung/core.h
@@ -80,8 +80,6 @@ struct sec_platform_data {
        struct sec_opmode_data          *opmode;
        int                             num_regulators;
 
-       bool                            buck_voltage_lock;
-
        int                             buck_gpios[3];
        int                             buck_ds[3];
        unsigned int                    buck2_voltage[8];
@@ -91,35 +89,12 @@ struct sec_platform_data {
        unsigned int                    buck4_voltage[8];
        bool                            buck4_gpiodvs;
 
-       int                             buck_set1;
-       int                             buck_set2;
-       int                             buck_set3;
-       int                             buck2_enable;
-       int                             buck3_enable;
-       int                             buck4_enable;
        int                             buck_default_idx;
-       int                             buck2_default_idx;
-       int                             buck3_default_idx;
-       int                             buck4_default_idx;
-
        int                             buck_ramp_delay;
 
-       int                             buck2_ramp_delay;
-       int                             buck34_ramp_delay;
-       int                             buck5_ramp_delay;
-       int                             buck16_ramp_delay;
-       int                             buck7810_ramp_delay;
-       int                             buck9_ramp_delay;
-       int                             buck24_ramp_delay;
-       int                             buck3_ramp_delay;
-       int                             buck7_ramp_delay;
-       int                             buck8910_ramp_delay;
-
-       bool                            buck1_ramp_enable;
        bool                            buck2_ramp_enable;
        bool                            buck3_ramp_enable;
        bool                            buck4_ramp_enable;
-       bool                            buck6_ramp_enable;
 
        int                             buck2_init;
        int                             buck3_init;
-- 
2.25.1

Reply via email to