From b6522b52a1eca2b2ba7015a09c2502cd7f226c3c Mon Sep 17 00:00:00 2001 From: xieyi Date: Wed, 17 Oct 2012 15:56:14 +0800 Subject: [PATCH] rk2928: act8931: adjust GPIO effective value for the control of charge current --- arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c b/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c index 6bad7047ec74..4e111b21bd56 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk-act8931.c @@ -15,7 +15,7 @@ #define ACT8931_CHGSEL_PIN RK2928_PIN1_PA1 #endif -#define ACT8931_CHGSEL_VALUE GPIO_LOW /* Decline to 20% current */ +#define ACT8931_CHGSEL_VALUE GPIO_HIGH /* Declined to 20% current */ extern int platform_device_register(struct platform_device *pdev); @@ -292,12 +292,12 @@ static struct act8931_platform_data act8931_data={ #ifdef CONFIG_HAS_EARLYSUSPEND void act8931_early_suspend(struct early_suspend *h) { - gpio_direction_output(ACT8931_CHGSEL_PIN, ACT8931_CHGSEL_VALUE); + gpio_direction_output(ACT8931_CHGSEL_PIN, !ACT8931_CHGSEL_VALUE); } void act8931_late_resume(struct early_suspend *h) { - gpio_direction_output(ACT8931_CHGSEL_PIN, !ACT8931_CHGSEL_VALUE); + gpio_direction_output(ACT8931_CHGSEL_PIN, ACT8931_CHGSEL_VALUE); } #endif -- 2.34.1