]> asedeno.scripts.mit.edu Git - linux.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)
commit711aebcfe3ba6bfe70f9fe9041f568552affd8b7
tree53e0164ac1bcda0c70262c19e43ed59162ba1253
parent88635b6da891522e6099c0bfc97ce03788dd6888
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