OSDN Git Service

drm/arm/malidp: use sysfs_emit in show function callback
authorDeepak R Varma <drv@mailo.com>
Fri, 27 Jan 2023 20:51:26 +0000 (02:21 +0530)
committerLiviu Dudau <liviu.dudau@arm.com>
Fri, 3 Feb 2023 13:05:33 +0000 (13:05 +0000)
commit8094d717c7eb940830ff6f47a771c9be28bf43f0
treeb4351ede282a82e36cc4ec4bd4792627da91e968
parent4fae160fde76e9dc929ba57ec0efbbc1197daaf0
drm/arm/malidp: use sysfs_emit in show function callback

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

Signed-off-by: Deepak R Varma <drv@mailo.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Y9Q5Tt8c9WBDxeyV@ubun2204.myguest.virtualbox.org
drivers/gpu/drm/arm/malidp_drv.c