From 5e3b7c6b1cb1a579a65fa77c7f785d94013025be Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Wed, 19 Dec 2012 16:59:43 -0800 Subject: [PATCH] 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-format-patch failed