Re: [PATCH] regulator: lp872x: Remove **regulators from struct lp872x

2015-01-26 Thread Mark Brown
On Mon, Jan 26, 2015 at 10:25:13AM +0800, Axel Lin wrote: > Current code is using devm_regulator_register(), so we don't need to store > *rdev > in struct lp872x for clean up. > Also clean up lp872x_probe() a bit to remove unnecessary goto and > num_regulators > variable. Applied, thanks. sign

[PATCH] regulator: lp872x: Remove **regulators from struct lp872x

2015-01-25 Thread Axel Lin
Current code is using devm_regulator_register(), so we don't need to store *rdev in struct lp872x for clean up. Also clean up lp872x_probe() a bit to remove unnecessary goto and num_regulators variable. Signed-off-by: Axel Lin --- drivers/regulator/lp872x.c | 24 +--- 1 file