Re: [PATCH] HID: input: throttle battery uevents

From: Jiri Kosina
Date: Tue Aug 15 2017 - 04:56:54 EST


On Thu, 10 Aug 2017, Dmitry Torokhov wrote:

> The power_supply subsystem tends to emit uevent every time
> power_supply_changed() is called, so we should call this API only when
> battery strength reported by the device is actually different from the
> previous readings, otherwise we'll drown the system in uevents.
>
> Fixes: 581c4484769e ("HID: input: map digitizer battery usage")
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>

Applied to for-4.14/battery. Thanks,

--
Jiri Kosina
SUSE Labs