From: Axel Lin Date: Thu, 20 Dec 2012 00:59:43 +0000 (-0800) Subject: leds: lm3530: Ensure drvdata->enable has correct status if regulator_disable fails X-Git-Tag: v3.9-rc1~79^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e3b7c6b1cb1a579a65fa77c7f785d94013025be;p=pandora-kernel.git 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 Acked-by: Shreshtha Kumar SAHU Acked-by: Milo Kim Tested-by: Milo Kim Signed-off-by: Bryan Wu --- Reading git-diff-tree failed