mbox series

[RESEND,0/2] Use sysfs_emit() and sysfs_emit_at() in "show" functions

Message ID 20240730065454.2096296-1-luoxueqin@kylinos.cn
Headers show
Series Use sysfs_emit() and sysfs_emit_at() in "show" functions | expand

Message

Xueqin Luo July 30, 2024, 6:54 a.m. UTC
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.

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 | 20 ++++++------
 kernel/power/main.c      | 70 ++++++++++++++++++++--------------------
 2 files changed, 45 insertions(+), 45 deletions(-)