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

From: Joe Perches
Date: Mon Sep 07 2020 - 13:58:18 EST


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@xxxxxxxxxxx/

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(-)

--
2.26.0