search for: device_attr_show

Displaying 2 results from an estimated 2 matches for "device_attr_show".

2023 Mar 01
1
[PATCH RESEND] 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 at mailo.com> --- Note: Resending the patch for review and feedback. No functional changes. drivers/gpu/drm/nouveau/nouveau_hwmon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/nouveau/no...
2023 Mar 07
0
[PATCH RESEND] drm/nouveau/hwmon: Use sysfs_emit in show function callsbacks
...23-03-02 at 01:05 +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 coccinelle device_attr_show.cocci script. > > Signed-off-by: Deepak R Varma <drv at mailo.com> > --- > Note: > Resending the patch for review and feedback. No functional changes. > > > drivers/gpu/drm/nouveau/nouveau_hwmon.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletion...