Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Lee Jones
39cdbe8d 2056f024

-25
-25
include/linux/mfd/samsung/core.h
··· 80 80 struct sec_opmode_data *opmode; 81 81 int num_regulators; 82 82 83 - bool buck_voltage_lock; 84 - 85 83 int buck_gpios[3]; 86 84 int buck_ds[3]; 87 85 unsigned int buck2_voltage[8]; ··· 89 91 unsigned int buck4_voltage[8]; 90 92 bool buck4_gpiodvs; 91 93 92 - int buck_set1; 93 - int buck_set2; 94 - int buck_set3; 95 - int buck2_enable; 96 - int buck3_enable; 97 - int buck4_enable; 98 94 int buck_default_idx; 99 - int buck2_default_idx; 100 - int buck3_default_idx; 101 - int buck4_default_idx; 102 - 103 95 int buck_ramp_delay; 104 96 105 - int buck2_ramp_delay; 106 - int buck34_ramp_delay; 107 - int buck5_ramp_delay; 108 - int buck16_ramp_delay; 109 - int buck7810_ramp_delay; 110 - int buck9_ramp_delay; 111 - int buck24_ramp_delay; 112 - int buck3_ramp_delay; 113 - int buck7_ramp_delay; 114 - int buck8910_ramp_delay; 115 - 116 - bool buck1_ramp_enable; 117 97 bool buck2_ramp_enable; 118 98 bool buck3_ramp_enable; 119 99 bool buck4_ramp_enable; 120 - bool buck6_ramp_enable; 121 100 122 101 int buck2_init; 123 102 int buck3_init;