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