Skip to contentSkip to conversation

regulator: core: increment open_count when regulator supply is set

PATCH Applied Laxman Dewangan 2 participants 2 messages Jul 23, 2012 – Aug 4, 2012 Voltage and current regulator framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regulator: core: increment open_count when regulator supply is set

When registering the regulator and setting supply for the regulator then increment open_count to reflect correct number of users.

---
 drivers/regulator/core.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/regulator/core.c +1 -0
index f092588..b28221a 100644
@@ -974,6 +974,7 @@ static int set_supply(struct regulator_dev *rdev,
 		err = -ENOMEM;
 		return err;
 	}
+	supply_rdev->open_count++;
 
 	return 0;
 }
Signature · 1 line
1.7.1.1
Applied
#1 lore raw
Quoted 2 lines · Laxman Dewangan

When registering the regulator and setting supply for the regulator then increment open_count to reflect correct number of users.

Applied, thanks.