Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48bf257e authored by Mathew King's avatar Mathew King Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: power: supply: core: Cleanup power supply sysfs attribute list



Make the device attribute list used to create sysfs attributes more
robust by decoupling the list order from order of the enum defined in
power_supply.h. This is done by using a designated initializer in the
POWER_SUPPLY_ATTR macro.

Signed-off-by: default avatarMathew King <mathewk@chromium.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
(cherry picked from commit 2cabeaf151294eceaa0f0e0fab2fe9fe66868869)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: Ic15f7d3bd7774cccb25d2bb18f2466e99c6e542f
parent c88326c2
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