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:Mathew King <mathewk@chromium.org> Signed-off-by:
Sebastian Reichel <sebastian.reichel@collabora.com> (cherry picked from commit 2cabeaf151294eceaa0f0e0fab2fe9fe66868869) Signed-off-by:
Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ic15f7d3bd7774cccb25d2bb18f2466e99c6e542f
Loading
Please register or sign in to comment