Skip to content

drivers core: Use sysfs_emit functions

Joe Perches linux-pm lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functionsdrivers/base/arch_topology.c drivers/base/cacheinfo.c drivers/base/core.c +9 more+102 -1013 replies
2/4drivers core: Remove strcat uses around sysfs_emit and neatendrivers/base/cacheinfo.c drivers/base/core.c drivers/base/memory.c +1 more+59 -472 replies
3/4drivers core: Reindent a couple uses around sysfs_emitdrivers/base/node.c drivers/base/power/sysfs.c+3 -30 replies
4/4drivers core: Miscellaneous changes for sysfs_emitdrivers/base/class.c drivers/base/cpu.c drivers/base/node.c +1 more+14 -250 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] drivers core: Use sysfs_emit functions

This is a sample block of conversions for drivers/base from next-20200903. It requires the suggested patch that adds sysfs_emit pafunctions from
https://lore.kernel.org/lkml/a9054fb521e65f2809671fa9c18e2453061e9d91.1598744610.git.joe@perches.com/

Convert and neaten the various uses of sprintf family functions to sysfs_emit and sysfs_emit_at

Joe Perches (4):
drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions drivers core: Remove strcat uses around sysfs_emit and neaten drivers core: Reindent a couple uses around sysfs_emit
drivers core: Miscellaneous changes for sysfs_emit

 drivers/base/arch_topology.c            |  2 +-
 drivers/base/cacheinfo.c                | 32 ++++++++-----
 drivers/base/class.c                    |  2 +-
 drivers/base/core.c                     | 27 ++++++-----
 drivers/base/cpu.c                      | 50 ++++++++++----------
 drivers/base/dd.c                       |  2 +-
 drivers/base/firmware_loader/fallback.c |  2 +-
 drivers/base/memory.c                   | 59 +++++++++++------------
 drivers/base/node.c                     | 47 ++++++++----------
 drivers/base/platform.c                 |  8 ++--
 drivers/base/power/sysfs.c              | 63 +++++++++++++------------
 drivers/base/power/wakeup_stats.c       | 12 ++---
 drivers/base/soc.c                      | 10 ++--
 13 files changed, 159 insertions(+), 157 deletions(-)
Signature · 1 line
2.26.0