u can check sys/class/power_supply/battery---> for the status like soc,vcell,temp etc
the battery charger (chipname_charger) could be in drivers/power/ or it can be in drivers/misc or it can be in drivers/properitory/ but actual core file would be drivers/power/power_supply_core.c power_supply_sysfs.c Thanks Venkatesh On 20 January 2012 14:49, carchangel <[email protected]> wrote: > thanks your answer > I did not find any <chipname>_charger.c file respond for my chip > under kernel/drivers/power/ . > but I found <chipname>_bat.c in /drivers/misc/, and it is build into > binary file. In this file the method get_property() which is in struct > "power_supply" > is used to get the battery status. may this is the file I want. > > Best wish to you > > carchangel > > > On 1ζ18ζ₯, εεΎ1:42, Sachin Nikam <[email protected]> wrote: > > cd kernel/drivers/power/ > > > > See which battery charger/status reporting chip you are using the name of > > the file would be <chipname>_charger.c > > > > Thanks, > > Sachin Nikam. > > > > On Tue, Jan 17, 2012 at 5:58 PM, carchangel <[email protected] > >wrote: > > > > > hello every one > > > I want to know which source file is responsible for the > > > battery-charging status in kernel, > > > can anyone know ,thanks. > > > > > -- > > > unsubscribe: [email protected] > > > website:http://groups.google.com/group/android-kernel > > > > -- > > Have a nice time !!! > > > > Cheers, > > Sachin. > > -- > unsubscribe: [email protected] > website: http://groups.google.com/group/android-kernel > -- regards yadav -- unsubscribe: [email protected] website: http://groups.google.com/group/android-kernel
