From: Daniel Mack Date: Thu, 23 Jul 2009 18:35:53 +0000 (+0200) Subject: power_supply: get_by_name and set_charged functionality X-Git-Tag: v2.6.32-rc1~158^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5f5ccb646bc6009572b5c23201b5e81638ff150;p=pandora-kernel.git power_supply: get_by_name and set_charged functionality This adds a function that indicates that a battery is fully charged. It also includes functions to get a power_supply device from the class of registered devices by name reference. These can be used to find a specific battery to call power_supply_set_battery_charged() on. Some battery drivers might need this information to calibrate themselves. Signed-off-by: Daniel Mack Cc: Ian Molton Cc: Anton Vorontsov Cc: Matt Reimer Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed