summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/tps65090-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-01-05 15:33:43 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-07 11:13:08 +0000
commitb9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2 (patch)
tree90d54e6b8a6c3369dc585f5f6f1de6fd324c7aa5 /drivers/regulator/tps65090-regulator.c
parentf02a3917b3bc65149cc077396896f2ae5a2fbe4a (diff)
downloadtalos-obmc-linux-b9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2.tar.gz
talos-obmc-linux-b9bb09111a4f5dbf8a0bd7df77ec79d3fdf9e5d2.zip
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 <axel.lin@ingics.com> Acked-by: Milo Kim <milo.kim@ti.com> Tested-by: Milo Kim <milo.kim@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps65090-regulator.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud