]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a317c9f41e1561d1bd3678eb6ad3d0e7a4637ac
treeaf7aaa3d93f91be817d0e0a0514639333bbe2f64
parent50ad5fc79b3e58729a669d7ad5c78a8264750d9b
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