linux/drivers/power
Andres Salomon d7eb9e36c4 power_supply: add eeprom dump file to olpc_battery's sysfs
This allows you to dump 0x60 bytes from the battery's EEPROM (starting at
address 0x20).  Note that it does an EC command for each byte, so it's pretty
slow.  OTOH, if you want to grab just a single byte from somewhere in the
EEPROM, you can do something like:

dd bs=1 count=1 skip=16 if=/sys/class/power_supply/olpc-battery/eeprom | od -x

Userspace battery collection/logging information needs this.

Signed-off-by: Andres Salomon <dilinger@debian.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2008-05-04 13:14:03 +04:00
..
apm_power.c apm_power: check I.intval for zero value, we use it as the divisor 2008-02-02 02:44:34 +03:00
ds2760_battery.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
Kconfig Don't compile the PMU power driver on 64-bit PowerPC 2007-07-23 12:42:45 +01:00
Makefile [BATTERY] One Laptop Per Child power/battery driver 2007-07-10 11:28:22 +01:00
olpc_battery.c power_supply: add eeprom dump file to olpc_battery's sysfs 2008-05-04 13:14:03 +04:00
pda_power.c pda_power: add init and exit function callbacks 2008-05-03 03:39:55 +04:00
pmu_battery.c PMU battery: filenames in sysfs with spaces 2008-05-03 03:40:42 +04:00
power_supply_core.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
power_supply_leds.c power: replace remaining __FUNCTION__ occurrences 2008-04-29 08:05:58 -07:00
power_supply_sysfs.c Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6 2008-02-07 09:45:58 -08:00
power_supply.h Driver core: change add_uevent_var to use a struct 2007-10-12 14:51:01 -07:00