/sys/class/power_supply/battery/charge_now

Radek Polak psonek2 at seznam.cz
Thu Feb 10 09:13:52 CET 2011


On Tuesday 08 February 2011 23:25:28 Matei-Eugen VASILE wrote:

> I managed to figure it out. The newer kernels seem to be missing the
> feature I was looking for. Probably the kernel I was using back then had
> it (I never checked the code back then). I created a patch for
> drivers/power/bq27000_battery.c for shr-2.6.34, built a new kernel for my
> om-gta02 device and tested it. It seems to be working fine.
> 
> I attached the patch to this email, in case you find it useful and think
> others might need it.

I have commited [1] the patch to qtmoko's kernel repo (if you dont mind). Btw 
new 2.6.37 kernels use different battery driver 

Regards

Radek

[1] 
https://github.com/radekp/linux-2.6/commit/dcb4208235dd2f1cb9807cd4e8d939fdc2c5927e

[2] 
http://git.openmoko.org/?p=kernel.git;a=blob;f=drivers/power/bq27x00_battery.c;h=99841f51b471eb095f4bf969118aed77130c4389;hb=refs/heads/om-2.6.37



More information about the devel mailing list