Skip to content
Commit a427503e authored by H. Nikolaus Schaller's avatar H. Nikolaus Schaller Committed by Sebastian Reichel
Browse files

power: generic-adc-battery: check for duplicate properties copied from iio channels



If an iio channel defines a basic property, there are duplicate entries
in /sys/class/power/*/uevent.

So add a check to avoid duplicates. Since all channels may be duplicates,
we have to modify the related error check.

Signed-off-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Cc: stable@vger.kernel.org
Fixes: e60fea79 ("power: battery: Generic battery driver using IIO")
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.co.uk>
parent 932d4744
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment