drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks
authorDeepak R Varma <drv@mailo.com>
Wed, 1 Mar 2023 19:35:41 +0000 (01:05 +0530)
committerLyude Paul <lyude@redhat.com>
Tue, 7 Mar 2023 00:42:50 +0000 (19:42 -0500)
commit9228742caf899fa72230dd8da19ca4c7528badb8
tree5cec499875d98042a58292c9cf6d6fa6271e9ee4
parentaad9729ec0e009440ac8c1a4be2204e4d3c08977
drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks

According to Documentation/filesystems/sysfs.rst, the show() callback
function of kobject attributes should strictly use sysfs_emit() instead
of sprintf() family functions. So, make this change.
Issue identified using the coccinelle device_attr_show.cocci script.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Y/+pDaHOgG1x8Py2@ubun2204.myguest.virtualbox.org
drivers/gpu/drm/nouveau/nouveau_hwmon.c