mbox series

[v2,0/4] Cleanup power_supply_sysfs.c

Message ID 20200504202930.228453-1-mathewk@chromium.org
Headers show
Series Cleanup power_supply_sysfs.c | expand

Message

Mathew King May 4, 2020, 8:29 p.m. UTC
A few various patches to cleanup the power_supply sysfs implementation.
---
v2: - Don't create attributes for unlisted properties
    - Use a char array for lower case name so no allocations neeed in
      init
    - Fix patch #2 does not compile because of change meant for patch #3

Mathew King (4):
  power_supply: Cleanup power supply sysfs attribute list
  power_supply: Use designated initializer for property text arrays
  power_supply: Add a macro that maps enum properties to text values
  power_supply: Add power supply type property to uevent env

 drivers/power/supply/power_supply_sysfs.c | 471 ++++++++++++----------
 1 file changed, 255 insertions(+), 216 deletions(-)