Re: [PATCH] drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks

2023-01-07 Thread Deepak R Varma
On Sun, Dec 25, 2022 at 02:32:08PM +0530, Deepak R Varma wrote: > 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 cocci

[PATCH] drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks

2022-12-25 Thread Deepak R Varma
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 ---