]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq2415x: fix race-condition in sysfs registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 28 Sep 2018 08:38:09 +0000 (10:38 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:15:21 +0000 (00:15 +0100)
commitfd3b8f23f436984c6a7fd31940c6879bc860ef5d
tree455f78bfe43b86920d80fd6f1012377773ab7100
parent1b0e4f4f52dfef2fa88ba30005549d7df467c122
power: supply: bq2415x: 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/bq2415x_charger.c