[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240731024518.126716-1-luoxueqin@kylinos.cn>
Date: Wed, 31 Jul 2024 10:45:16 +0800
From: xueqin Luo <luoxueqin@...inos.cn>
To: rafael@...nel.org,
	pavel@....cz,
	len.brown@...el.com
Cc: linux-pm@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	xiongxin@...inos.cn,
	Xueqin Luo <luoxueqin@...inos.cn>
Subject: [PATCH v2 0/2] Use sysfs_emit() and sysfs_emit_at() in "show" functions
From: Xueqin Luo <luoxueqin@...inos.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
Powered by blists - more mailing lists