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