]> asedeno.scripts.mit.edu Git - linux.git/commit
power: supply: ds2780: fix race-condition in bin attribute registration
authorSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 29 Sep 2018 05:57:30 +0000 (07:57 +0200)
committerSebastian Reichel <sre@kernel.org>
Wed, 12 Dec 2018 23:16:31 +0000 (00:16 +0100)
commit88635b6da891522e6099c0bfc97ce03788dd6888
treef15a491c214057f41c0b4cfe3ddfbd43d1f7f331
parent451ba0e4363c053201065f0f2ba9405fbdf0f731
power: supply: ds2780: 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/ds2780_battery.c