]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: charger-manager: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Sep 2018 15:35:37 +0000 (17:35 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:16:20 +0000 (00:16 +0100)
commit9631430f43843117580a1ea5f73c9ee09feb208e
treeefbb8664aa84ad60a9520966df63e0574bd44ca1
parent37d7ff11b3a6e3f1522f7eaa7818693c2f844e5b
power: supply: charger-manager: fix race-condition in sysfs registration

This registers custom sysfs properties using the native functionality
of the power-supply framework, which cleans up the code a bit and
fixes a race-condition. Before this patch the sysfs attributes were
not properly registered to udev.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c
include/linux/power/charger-manager.h