]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PM: hibernate: Use sysfs_emit() and sysfs_emit_at() in "show" functions
authorXueqin Luo <luoxueqin@kylinos.cn>
Thu, 1 Aug 2024 08:31:55 +0000 (16:31 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Aug 2024 14:03:51 +0000 (16:03 +0200)
commit6306653cd84f6faace2af646aedef2b90e61958a
tree5930dec13455a6bd53279e70bedd7e8bb14bf0d1
parent8400291e289ee6b2bf9779ff1c83a291501f017b
PM: hibernate: Use sysfs_emit() and sysfs_emit_at() in "show" functions

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.

Signed-off-by: Xueqin Luo <luoxueqin@kylinos.cn>
Link: https://patch.msgid.link/20240801083156.2513508-2-luoxueqin@kylinos.cn
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
kernel/power/hibernate.c