]> asedeno.scripts.mit.edu Git - linux.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)
commit157ba1bb5fcb91366df3be5e63a04b799ff9cf64
treeefbb8664aa84ad60a9520966df63e0574bd44ca1
parentefcca6bdfba1d579d86bd3f5ea65e5bf8e7deebe
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