]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: lp8788: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Sep 2018 09:25:20 +0000 (11:25 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:16:02 +0000 (00:16 +0100)
commitb1f7ee898bdcad18e5a5c008ff7bf30ae9941265
tree06207d89a163d4cb65e0b97e92639d27f4a09be0
parenta45cefb0ca1fdec07495117c1d325d99fa9f5bbc
power: supply: lp8788: 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/lp8788-charger.c