power_supply: Add new power supply properties CHARGE_CURRENT/VOLTAGE_MAX
authorRamakrishna Pallala <ramakrishna.pallala@intel.com>
Mon, 30 Jul 2012 07:19:21 +0000 (12:49 +0530)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 04:59:15 +0000 (21:59 -0700)
commit2815b786c3bb86fff97f1f6e2f0874903ff2339b
treeaf7aaa3d93f91be817d0e0a0514639333bbe2f64
parentc6b2744c5dd098e8bca2515e91219cf0206290c5
power_supply: Add new power supply properties CHARGE_CURRENT/VOLTAGE_MAX

There are different types of chargers avalibale like AC, Solar, USB,
etc..  Even in USB we have different types SDP/DCP/CDP/ACA and all these
chargers have different o/p ratings. For example SDP supports only 500mA
of charge current whereas AC charger can support upto 8A or more.

Similarly batteries also come with charge current and voltage ratings
and these ratings vary depending on its capacity and the technology
used.

This patch adds two new power supply properties
CONSTANT_CHARGE_CURRENT_MAX and CONSTANT_CHARGE_CURRENT_MAX.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Documentation/power/power_supply_class.txt
drivers/power/power_supply_sysfs.c
include/linux/power_supply.h