]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: ds2781: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Sep 2018 09:10:51 +0000 (11:10 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:15:47 +0000 (00:15 +0100)
commita45cefb0ca1fdec07495117c1d325d99fa9f5bbc
tree86d103cb837357afd6ffb381660ef3bcaefd3974
parentb10474aafe80cf50afe7d299d3cc8a60efe3e69b
power: supply: ds2781: 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/ds2781_battery.c