staging: fieldbus: use sysfs_emit() in show functions
authorDeepak R Varma <drv@mailo.com>
Wed, 9 Nov 2022 10:42:43 +0000 (16:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Nov 2022 13:40:13 +0000 (14:40 +0100)
commitfb7d5ebea988899500e9a067d950034dbe8a0fbd
treed7e2380817c20294f71a085b692be6472fdbb0e9
parent8ce256540f41c84cb910a681c2cb84e8c80ab8db
staging: fieldbus: use sysfs_emit() in show functions

The show() methods should only use sysfs_emit() when formatting values
to be returned to the user space.
Ref: Documentation/filesystems/sysfs.rst
Issue identified by coccicheck.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y2uEIzebbM/Fs5Jz@qemulion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fieldbus/dev_core.c