[PATCH] PMU charging notification
Holger Freyther
zecke at openmoko.org
Tue Jul 1 20:43:06 CEST 2008
Hey,
due line wrapping issues with kmail I'm sending these patches attachment. The
main goal is to send an uevent whenever something changes that might changed
the battery charging state. So the good thing is we do send out changes, the
bad thing is when someone in userspace will go to /sys/class/power/foo/state
it will not say charging. So either the battery takes time to report to us or
we cached the HDQ state of the battery and need to flush it?
Anyway here is the patchset:
Holger Freyther (5):
[bq27000] Make the checkpatch.pl happy
[janitor] Make checkpatch happy on the header files
[janitor] make checkpatch.pl happy
[battery] Make the bq27000 send an uevent when the charging state
possible changed
[pcf50633] Report more events to userspace using the default callback
arch/arm/mach-s3c2440/mach-gta02.c | 36
+++++++++++++++++++-----------------
drivers/i2c/chips/pcf50606.c | 25 ++++++++++++++-----------
drivers/i2c/chips/pcf50633.c | 24 +++++++++++++++---------
drivers/power/bq27000_battery.c | 18 ++++++++++++++++--
include/linux/bq27000_battery.h | 2 ++
include/linux/pcf50606.h | 2 +-
include/linux/pcf50633.h | 2 +-
include/linux/pcf506xx.h | 3 ++-
8 files changed, 70 insertions(+), 42 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bq27000-Make-the-checkpatch.pl-happy.patch
Type: text/x-diff
Size: 1194 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080701/fd82ef63/attachment.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-battery-Make-the-bq27000-send-an-uevent-when-the-c.patch
Type: text/x-diff
Size: 3894 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080701/fd82ef63/attachment-0001.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-janitor-Make-checkpatch-happy-on-the-header-files.patch
Type: text/x-diff
Size: 1477 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080701/fd82ef63/attachment-0002.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-janitor-make-checkpatch.pl-happy.patch
Type: text/x-diff
Size: 3003 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080701/fd82ef63/attachment-0003.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-pcf50633-Report-more-events-to-userspace-using-the.patch
Type: text/x-diff
Size: 2337 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20080701/fd82ef63/attachment-0004.patch
More information about the openmoko-kernel
mailing list