From: Andres Salomon Date: Fri, 2 May 2008 20:41:58 +0000 (-0700) Subject: power_supply: add eeprom dump file to olpc_battery's sysfs X-Git-Tag: v2.6.27-rc2~110^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7eb9e36c42504e87c7d92dd5c05cb6f2cf74d28;p=pandora-kernel.git 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 Cc: David Woodhouse Signed-off-by: Andrew Morton Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed