]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: bq24190_charger: Add support for "charge_types" property
authorHans de Goede <hdegoede@redhat.com>
Wed, 11 Dec 2024 17:44:50 +0000 (18:44 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 12 Dec 2024 23:39:38 +0000 (00:39 +0100)
commit5d417a5e7ade02a7b75cd886d8afe3e9025e7e25
tree9cc0f623e670994d1c18a0390b16faf54f821f76
parentd24bf99214b199c25f9c2cb04b3a4993d1c7ab60
power: supply: bq24190_charger: Add support for "charge_types" property

The bq24190 power_supply class device has a writeable "charge_type"
property, add support for the new "charge_types" property. Reading this
returns a list of supported charge-types with the currently active type
surrounded by square brackets, allowing userspace to find out which
enum power_supply_charge_type values are supported.

This has been tested on a GPD win gaming-handheld.

Reviewed-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241211174451.355421-4-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq24190_charger.c