From: Daniel Mack Date: Tue, 18 May 2010 19:49:52 +0000 (+0200) Subject: power_supply: Add support for writeable properties X-Git-Tag: v2.6.35-rc1~412^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0011d2d4a5f7bb5666dcfb9f9b3dbdb084ab98f1;p=pandora-kernel.git power_supply: Add support for writeable properties This patch adds support for writeable power supply properties and exposes them as writeable to sysfs. A power supply implementation must implement two new function calls in order to use that feature: int set_property(struct power_supply *psy, enum power_supply_property psp, const union power_supply_propval *val); int property_is_writeable(struct power_supply *psy, enum power_supply_property psp); Signed-off-by: Daniel Mack Cc: David Woodhouse Cc: Alexey Starikovskiy Cc: Len Brown Cc: Mark Brown Cc: Matt Reimer Cc: Evgeniy Polyakov Cc: Tejun Heo Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed