leds: lm3530: Ensure drvdata->enable has correct status if regulator_disable fails
authorAxel Lin <axel.lin@ingics.com>
Thu, 20 Dec 2012 00:59:43 +0000 (16:59 -0800)
committerBryan Wu <cooloney@gmail.com>
Sat, 2 Feb 2013 01:47:06 +0000 (17:47 -0800)
commit5e3b7c6b1cb1a579a65fa77c7f785d94013025be
treec8a910b1bb7c67eb1b9b5dbea84fd3682f504516
parenta1932edf8baaf2b09ad72b119c1f9749ad4397f2
leds: lm3530: Ensure drvdata->enable has correct status if regulator_disable fails

Add lm3530_led_enable() and lm3530_led_disable() helper functions.
This ensures setting drvdata->enable to correct status if regulator_disable
fails.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Shreshtha Kumar SAHU <shreshthakumar.sahu@stericsson.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Tested-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
drivers/leds/leds-lm3530.c
This page took 0.024464 seconds and 5 git commands to generate.