commit | 5e3b7c6b1cb1a579a65fa77c7f785d94013025be | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Wed Dec 19 16:59:43 2012 -0800 |
committer | Bryan Wu <cooloney@gmail.com> | Fri Feb 01 17:47:06 2013 -0800 |
tree | c8a910b1bb7c67eb1b9b5dbea84fd3682f504516 | |
parent | a1932edf8baaf2b09ad72b119c1f9749ad4397f2 [diff] |
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>