]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: ds2780: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Sep 2018 09:00:32 +0000 (11:00 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:15:42 +0000 (00:15 +0100)
commitb10474aafe80cf50afe7d299d3cc8a60efe3e69b
tree481f8a155b815cc9916d6fea04e839790cc6d8b9
parent06215ce99988b8ce1e44ea096c5ef1fd202efb15
power: supply: ds2780: 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/ds2780_battery.c