regulator: max77802: Remove unused fields from struct max77802_regulator_prv
PATCH 1/1 regulator: max77802: Remove unused fields from struct max77802_regulator_prv
Both num_regulators and *rdev[MAX77802_REG_MAX] are not used, remove them.
Signed-off-by Axel Lin <[email protected]>
--- drivers/regulator/max77802.c | 2 -- 1 file changed, 2 deletions(-)
drivers/regulator/max77802.c +0 -2
@@ -65,8 +65,6 @@ static unsigned int ramp_table_77802_4bit[] = { };struct max77802_regulator_prv { -int num_regulators; -struct regulator_dev *rdev[MAX77802_REG_MAX ];unsigned int opmode[MAX77802_REG_MAX ]; };
Signature · 1 line
1.9.1
Quoted 1 line · Axel Lin
Both
num_regulatorsand *rdev[MAX77802_REG_MAX] are not used, remove them.
Applied, thanks.
Hello Axel,
Quoted 3 lines · Axel Lin
Both
num_regulatorsand *rdev[MAX77802_REG_MAX] are not used, remove them.Signed-off-by Axel Lin <[email protected]>
Right, these are not used indeed since are left overs from the previous attempt to have a single driver for both max77686 and max77802 PMICs. Sorry about that and thanks a lot for the patch.
drivers/regulator/max77802.c static unsigned int ramp_table_77802_4bit[] = { · line 69
Quoted 8 lines
struct
max77802_regulator_prv{drivers/regulator/max77802.c +0
-2-int num_regulators; -struct regulator_dev *rdev[MAX77802_REG_MAX ];unsigned int opmode[MAX77802_REG_MAX ]; };
I see that Mark already applied this but fwiw:
Best regards,
Javier