twl4030_charger: allow changing end-of-charge currnet.
authorGrond <grond66@riseup.net>
Tue, 20 Dec 2016 18:59:42 +0000 (10:59 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 21 Dec 2016 23:40:28 +0000 (01:40 +0200)
commit1bad919577b82154c637ddeca694cdb2880ea038
tree9c950059487c4d4b99fef24d9664923e3b78274a
parent485409d4ee7959bcc682e357691c3f477beddd10
twl4030_charger: allow changing end-of-charge currnet.

Allows the user to change the TWL4030's end-of-charge current parameter
via a sysfs file. If set to 400mA, it nicely solves the overcharging
problem on the pandora. Note that this commit also changes the format of
the charge_current sysfs file to be in micro-amperes, to make it
consistent with all the other sysfs parameters. Since it looks like this
file was only being used for debugging purposes, this shouldn't break
anybody's tools. (fingers crossed.)
drivers/power/twl4030_charger.c