From: Axel Lin Date: Sat, 5 Jan 2013 07:33:43 +0000 (+0800) Subject: regulator: lp8788-ldo: Use ldo->en_pin to check if regulator is enabled by external pin X-Git-Tag: v3.9-rc1~154^2~10^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2;p=pandora-kernel.git regulator: lp8788-ldo: Use ldo->en_pin to check if regulator is enabled by external pin ldo->en_pin is set iff the regulator is enabled by external pin. This patch sets ldo->en_pin to NULL if lp8788_gpio_request_ldo_en() fails, then we can use it to determinate if the regulator is controlled by external pin or register. lp8788_get_ldo_enable_mode(), lp8788_ldo_ctrl_by_extern_pin() and lp8788_ldo_is_enabled_by_extern_pin() functions are not used now, remove them. Signed-off-by: Axel Lin Acked-by: Milo Kim Tested-by: Milo Kim Signed-off-by: Mark Brown --- Reading git-diff-tree failed