From: <z7...@us...> - 2007-05-16 12:25:06
|
Revision: 974 http://svn.sourceforge.net/hackndev/?rev=974&view=rev Author: z72ka Date: 2007-05-16 05:25:02 -0700 (Wed, 16 May 2007) Log Message: ----------- PalmTX: Modified AC status detection Modified Paths: -------------- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c =================================================================== --- linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-05-16 12:24:06 UTC (rev 973) +++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmtx/palmtx_battery.c 2007-05-16 12:25:02 UTC (rev 974) @@ -159,7 +159,7 @@ static int palmtx_ac_is_connected (void){ /* when charger is plugged in, then status is ONLINE */ - int ret = ((GET_GPIO(GPIO_NR_PALMTX_POWER_DETECT)));; + int ret = ((GET_GPIO(GPIO_NR_PALMTX_POWER_DETECT))||(!GET_GPIO(GPIO_NR_PALMTX_USB_DETECT)));; if (ret) ret = 1; else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |