From: Krzysztof Kozlowski Date: Thu, 12 Mar 2015 07:44:04 +0000 (+0100) Subject: power_supply: sysfs: Use power_supply_*() API for accessing function attrs X-Git-Tag: omap-for-v4.1/fixes-rc1~174^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee8f334a9a467aba2c861a00be7c48dad549700a;p=pandora-kernel.git power_supply: sysfs: Use power_supply_*() API for accessing function attrs Replace direct calls to power supply function attributes with wrappers. Wrappers provide safe access in case of unregistering the power supply (e.g. by removing the driver). Replace: - get_property -> power_supply_get_property - set_property -> power_supply_set_property - property_is_writeable -> power_supply_property_is_writeable Signed-off-by: Krzysztof Kozlowski Acked-by: Jonghwa Lee Acked-by: Pavel Machek Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Sebastian Reichel Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed