Skip to contentSkip to conversation

regulator: max77802: Remove unused fields from struct max77802_regulator_prv

PATCH Applied Axel Lin 3 participants 3 messages Aug 20, 2014 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

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.

---
 drivers/regulator/max77802.c | 2 --
 1 file changed, 2 deletions(-)
drivers/regulator/max77802.c +0 -2
index 5f022f8..ad1caa9 100644
@@ -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
maintainer Applied
#1 lore raw
Quoted 1 line · Axel Lin

Both num_regulators and *rdev[MAX77802_REG_MAX] are not used, remove them.

Applied, thanks.

Acked-by on v1 1/1
#2 lore raw
In reply to Axel Lin

Hello Axel,

Quoted 3 lines · Axel Lin

Both num_regulators and *rdev[MAX77802_REG_MAX] are not used, remove them.

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