]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: pcf50633: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 29 Sep 2018 05:44:28 +0000 (07:44 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:16:24 +0000 (00:16 +0100)
commit451ba0e4363c053201065f0f2ba9405fbdf0f731
tree9a85652986e11bdc8bac5b32e7e1db0f3e6222aa
parent157ba1bb5fcb91366df3be5e63a04b799ff9cf64
power: supply: pcf50633: 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/pcf50633-charger.c