]> www.infradead.org Git - users/willy/xarray.git/commit
power: supply: bq2415x_charger: Immediately reschedule delayed work on notifier events
authorSicelo A. Mhlongo <absicsz@gmail.com>
Sat, 21 Dec 2024 16:10:23 +0000 (18:10 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 23 Dec 2024 02:27:30 +0000 (03:27 +0100)
commitf6945d52ee5346900fb7251ec23d34822a06918e
treea0a76c5e0207b38c2035814589af8bb442784e9b
parent74e3f620852390a4e8359c6056d67af1e42b1b1c
power: supply: bq2415x_charger: Immediately reschedule delayed work on notifier events

When the notifier is called we want to schedule the worker as
soon as possible. Thus it makes sense to reschedule any waiting
work and only queue a new one if there is none.

Suggested-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20241221161124.114989-1-absicsz@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq2415x_charger.c