From: Axel Lin Date: Mon, 6 Sep 2010 06:06:07 +0000 (+0800) Subject: regulator: wm8350-regulator - fix the logic of checking REGULATOR_MODE_STANDBY mode X-Git-Tag: v2.6.36-rc5~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ecee36adc9d2cf19471c395af6ef70264dec251;p=pandora-kernel.git regulator: wm8350-regulator - fix the logic of checking REGULATOR_MODE_STANDBY mode In wm8350_dcdc_set_mode(), we set DCx_SLEEP bit of WM8350_DCDC_SLEEP_OPTIONS register for REGULATOR_MODE_STANDBY mode. ( DCx_SLEEP bits: 0: Normal DC-DC operation 1: Select LDO mode ) In wm8350_dcdc_get_mode(), current logic to determinate REGULATOR_MODE_STANDBY mode is just reverse. ( sleep is set should mean REGULATOR_MODE_STANDBY mode. ) Signed-off-by: Axel Lin Acked-by: Mark Brown Signed-off-by: Liam Girdwood --- Reading git-diff-tree failed