power: supply: twl4030-charger: add writable INPUT_CURRENT_LIMIT property
authorH. Nikolaus Schaller <hns@goldelico.com>
Fri, 14 Apr 2017 18:25:56 +0000 (20:25 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 09:37:11 +0000 (11:37 +0200)
commit3fb319c2cdcd10f775f4d4a05a7d12fa1a5679c1
tree62effe4c64c90adf6de223ee1329af8695e8091a
parent6cf62a3b97e78ba41d31390e59a1ddc98a9e3622
power: supply: twl4030-charger: add writable INPUT_CURRENT_LIMIT property

Currently, the twl4030 charger defines its own max_current by directly
creating sysfs nodes. It should use the input_current_limit property
which is e.g. used by the bq24257 driver.

This patch adds the input_current_property with the same semantics as
the max_current property. The code to manage the max_current property
is removed by a separate patch.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/twl4030_charger.c