power: supply: max17042_battery: Add support for the TECHNOLOGY attribute
authorHans de Goede <hdegoede@redhat.com>
Fri, 14 Apr 2017 18:32:53 +0000 (20:32 +0200)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 10:37:37 +0000 (12:37 +0200)
commitef7fcdaebfce56bd7f1ac3b916b5d587a3666f10
treeb672443f05e546317923cf469a416d1e93f6bd88
parentdcdddda8fdd23048f2eaf54a18a33e9f225d8fb6
power: supply: max17042_battery: Add support for the TECHNOLOGY attribute

The max17042 is intended for Li-Ion or Li-Po batteries, add a TECHNOLOGY
attribute to reflect this. Note this is hardcoded to Li-Ion as there is
no way to tell the difference, and Lithium-Ion Polymer batteries are
a sub-family of Lithium-Ion so Li-Ion technically is correct for both.

Using Li-Ion for both is already done by many drivers and is much
better then not providing any technology info at all.

Suggested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/max17042_battery.c