]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915: i915_pmu: Use sysfs_emit() instead of sprintf()
authorMadhur Kumar <madhurkumar004@gmail.com>
Tue, 23 Sep 2025 19:50:51 +0000 (01:20 +0530)
committerAndi Shyti <andi.shyti@linux.intel.com>
Thu, 25 Sep 2025 22:38:01 +0000 (00:38 +0200)
commit40ac9b3eb09085dd729032ac5e1ea213068f34cc
tree355bfc2c2c97c4f27faaf2fdf44c51cedea098bf
parent22a2f2e35f9c08c8572003d1e6d3f0e9ab968837
drm/i915: i915_pmu: Use sysfs_emit() instead of sprintf()

Follow the advice in Documentation/filesystems/sysfs.rst:
show() should only use sysfs_emit() or sysfs_emit_at() when formatting
the value to be returned to user space.

Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://lore.kernel.org/r/20250923195051.1277855-1-madhurkumar004@gmail.com
drivers/gpu/drm/i915/i915_pmu.c