]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
thermal: sysfs: Use str_enabled_disabled() helper in mode_show()
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 11 Mar 2026 16:42:14 +0000 (17:42 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 14 Mar 2026 11:15:56 +0000 (12:15 +0100)
commit2dc1b0dd4bbfa2a27e5432300d1c18eb51c7efed
tree49cca213360e5b1424c8e4874b8d8751fffbaec0
parent5ddd020b8bd0fb2fdcdc1f8c40513c656a690f80
thermal: sysfs: Use str_enabled_disabled() helper in mode_show()

Replace hard-coded strings with the str_enabled_disabled() helper.

This unifies the output and helps the linker with deduplication, which
may result in a smaller binary.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
[ rjw: Subject and changelog tweaks ]
Link: https://patch.msgid.link/20260311164212.405981-3-thorsten.blum@linux.dev
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_sysfs.c