From: <far...@us...> - 2006-12-08 18:56:19
|
Revision: 700 http://svn.sourceforge.net/hackndev/?rev=700&view=rev Author: farcaller Date: 2006-12-08 10:56:15 -0800 (Fri, 08 Dec 2006) Log Message: ----------- palmt3: added tps65010_get_chgstatus, updated tps65010_get_charging Modified Paths: -------------- linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c Modified: linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c =================================================================== --- linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c 2006-12-08 18:55:03 UTC (rev 699) +++ linux4palm/linux/trunk/drivers/i2c/chips/tps65010.c 2006-12-08 18:56:15 UTC (rev 700) @@ -681,10 +681,21 @@ int tps65010_get_charging(void) { - return the_tps->charging; + if(the_tps) + return the_tps->charging; + else + return 0; } EXPORT_SYMBOL(tps65010_get_charging); +u8 tps65010_get_chgstatus(void) { + if(the_tps) + return the_tps->chgstatus; + else + return 0; +} +EXPORT_SYMBOL(tps65010_get_chgstatus); + /* Draw from VBUS: * 0 mA -- DON'T DRAW (might supply power instead) * 100 mA -- usb unit load (slowest charge rate) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |