]> git.baikalelectronics.ru Git - kernel.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)
commit322b940f84125091db41e3a2f5c1a42a47155e55
tree9a85652986e11bdc8bac5b32e7e1db0f3e6222aa
parent9631430f43843117580a1ea5f73c9ee09feb208e
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