Skip to content

Cleanup power_supply_sysfs.c

Mathew King linux-pm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4power_supply: Cleanup power supply sysfs attribute listdrivers/power/supply/power_supply_sysfs.c+132 -1280 replies
2/4power_supply: Use designated initializer for property text arraysdrivers/power/supply/power_supply_sysfs.c+60 -140 replies
3/4power_supply: Add a macro that maps enum properties to text valuesdrivers/power/supply/power_supply_sysfs.c+51 -750 replies
4/4power_supply: Add power supply type property to uevent envdrivers/power/supply/power_supply_sysfs.c+37 -240 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/4] Cleanup power_supply_sysfs.c

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(-)
Signature · 1 line
2.26.2.526.g744177e7f7-goog