]> git.baikalelectronics.ru Git - kernel.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)
commitdb37d1f3fa8c4f78a48a3bfa927a74fd4c2a017c
tree450978c8253d31749b07fa51ec00c3e69ac6e058
parent21b663f7b81442ec8b04497a57c4fdee2bdd2a76
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