[PATCH 0/3] PMU and Battery interaction in regard to kobject uevent
zecke at openmoko.org
Tue Jun 3 15:34:27 CEST 2008
On Tuesday 03 June 2008 13:33:51 Andy Green wrote:
> So your goal there is really just to push "I am being charged"
> notifications into the battery kobject?
yepp, the olpc_battery.c is the role model here.
> If it's just "I am being charged" appearing in battery uevent context
> that you are basically thinking about, why not export a bq27000 API that
> is just charger_state_change(int) and bq27000 privately makes his own
> events on his private kobject in there. You call charger_state_change()
> then from platform callback from pcf50633 charger event actions.
okay, I will run this way. Will send a patch tomorrow.
> OK, maybe I can take care of that when we get to the bottom of this
I will give your patches a spin but I don't expect any issues.
More information about the openmoko-kernel