]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: bq2415x_charger: report charging state changes to userspace
authorSicelo A. Mhlongo <absicsz@gmail.com>
Thu, 28 Nov 2024 08:57:28 +0000 (10:57 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 19 Dec 2024 00:09:54 +0000 (01:09 +0100)
commit5972da73f75af6002b72e5cd61002855b6b4eda3
tree21c9307f2606df3e1cb32078ef32b849a88747c1
parent525f6a2c63e0958c25080e108a0cb7f8a3a23719
power: supply: bq2415x_charger: report charging state changes to userspace

Continuously track the charging status register in order to send uevents
whenever the state changes. Generate an uevent also when the chip's OTG
line is toggled, in bq2415x_notifier_call().

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20241128085759.11840-2-absicsz@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq2415x_charger.c