diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-17 19:53:21 +0200 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2010-05-17 21:22:13 +0200 |
commit | 17699f3ddc5172d681eaf055213b477a2ae955ee (patch) | |
tree | c032c214f0ee345346c79995777c56fe3cfff7ad | |
parent | c741b7c424cc10ceea8dcd9c6358cce746622e8b (diff) |
gta02: Remove usage of pcf50633 gpio api
This is the only user of the pcf50633 gpio api. Since the custom interface is
going to be replaced with gpiolib all users need to be remove or replaced.
It is safe to be remove it in this case since it is used used to turn a gpio
off which is never going to be turned on.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index f42af59dcf9..d680a4da022 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -368,19 +368,11 @@ static struct platform_device gta02_glamo_dev = { static void gta02_configure_pmu_for_charger(struct pcf50633 *pcf, void *unused, int res) { - int ma; - - /* Interpret charger type */ - if (res < ((ADC_NOM_CHG_DETECT_USB + ADC_NOM_CHG_DETECT_1A) / 2)) { - - /* - * Sanity - stop GPO driving out now that we have a 1A charger - * GPO controls USB Host power generation on GTA02 - */ - pcf50633_gpio_set(pcf, PCF50633_GPO, 0); + int ma; + if (res < ((ADC_NOM_CHG_DETECT_USB + ADC_NOM_CHG_DETECT_1A) / 2)) ma = 1000; - } else + else ma = 100; pcf50633_mbc_usb_curlim_set(pcf, ma); |