[PATCH 0/3] PMU and Battery interaction in regard to kobject uevent
zecke at openmoko.org
Tue Jun 3 11:20:48 CEST 2008
with 2.6.24 we are using the battery class to present our bq27000 battery. Now
we would like to update the charging indicator immediately after the power
supply was plugged in and the kernel recognized that.
The kernel has one interface for that. These are the uevents. In the case of
the battery you will need the kobject of the battery device.
Now to the issue:
- The battery code has the kobject but does not know about the pmu
- The pmu knows about plugging but doesn't have the kobject.
- Extend the current callback in the pcf50633 driver to allow to register and
unregister handlers and make register the bq27000 there.
- Use the existing cb and make the mach-gta02.c call into the battery code..
More information about the openmoko-kernel