[PATCH v2 0/2] Use sysfs_emit() and sysfs_emit_at() in "show" functions

xueqin Luo posted 2 patches 1 year, 6 months ago
There is a newer version of this series
kernel/power/hibernate.c | 22 +++++------
kernel/power/main.c      | 82 ++++++++++++++++++++++------------------
2 files changed, 56 insertions(+), 48 deletions(-)
[PATCH v2 0/2] Use sysfs_emit() and sysfs_emit_at() in "show" functions
Posted by xueqin Luo 1 year, 6 months ago
From: Xueqin Luo <luoxueqin@kylinos.cn>

As Documentation/filesystems/sysfs.rst suggested,
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.

No functional change intended.

v2: Adopted Christophe's suggestions as follows:
- Fixed some formatting
- Fixed logic errors in mem_sleep_show, pm_test_show, state_show functions
Thanks!

Xueqin Luo (2):
  PM: hibernate: Use sysfs_emit() and sysfs_emit_at() in "show"
    functions
  PM: Use sysfs_emit() and sysfs_emit_at() in "show" functions

 kernel/power/hibernate.c | 22 +++++------
 kernel/power/main.c      | 82 ++++++++++++++++++++++------------------
 2 files changed, 56 insertions(+), 48 deletions(-)

-- 
2.25.1