power: bq2419x: report input current limit
authorVenkat Reddy Talla <vreddytalla@nvidia.com>
Wed, 23 Dec 2015 05:32:46 +0000 (10:32 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 6 Jan 2016 21:22:15 +0000 (13:22 -0800)
commit1d05470354797b80dbec1e879ce5c6ed9e0312b6
tree1d60ab54aef5068706b5d7bc162da57a615bb973
parent0c740abec2d4a0f50b7576a1b73a1eeafcfb8878
power: bq2419x: report input current limit

Adding api to report input current limit based on
cable connected to device.
Also reporting SW configured current limit if value
is less than or equal to 2000mA and reporting HW limit
2100mA if current limit is more than 2000mA.

Bug 200159736

Change-Id: I6e0573e67e297f441e36f528ca5e1facea365d33
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/926208
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Documentation/devicetree/bindings/power/bq2419x-charger.txt
drivers/power/bq2419x-charger-st8.c
drivers/power/bq2419x-charger.c
include/linux/power/bq2419x-charger.h