]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: ds2781: fix race-condition in bin attribute registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 29 Sep 2018 06:46:02 +0000 (08:46 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:16:39 +0000 (00:16 +0100)
commit0c6ac64746b42103f309a76936392ed0e64fd636
tree53e0164ac1bcda0c70262c19e43ed59162ba1253
parent373c66cffa0a1cbc5993797a5f3c99ef4bc83486
power: supply: ds2781: fix race-condition in bin attribute registration

This is a follow-up patch to the previous one, which fixed a
race-condition during registration of the attribute group.
This fixes the same issue for the binary attributes by adding
them to the properly registered group. As a side effect the
code is further cleaned up.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ds2781_battery.c