From: Krzysztof Kozlowski Date: Fri, 12 Sep 2014 06:53:57 +0000 (+0200) Subject: charger: max14577: Configure battery-dependent settings from DTS and sysfs X-Git-Tag: fixes-against-v3.18-rc2~70^2~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e30110e9c96f48aea01abc3e6dfadb369cbafec3;p=pandora-kernel.git charger: max14577: Configure battery-dependent settings from DTS and sysfs Remove hard-coded values for: - Fast Charge current, - End Of Charge current, - Fast Charge timer, - Overvoltage Protection Threshold, - Battery Constant Voltage, and use DTS or sysfs to configure them. This allows using the max14577 charger driver with different batteries. Now the charger driver requires valid configuration data from DTS. In case of wrong configuration data it fails during probe. The fast charge timer is configured through sysfs entry. Signed-off-by: Krzysztof Kozlowski Acked-by: Andrew Morton Signed-off-by: Lee Jones --- Reading git-diff-tree failed