media: pvrusb2: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 1 Dec 2022 11:27:59 +0000 (19:27 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 19 Jul 2023 10:57:46 +0000 (12:57 +0200)
commit13e6756b68f0fce6491342f65837dfa47f8c4ba0
tree67513212d9c6e0346bcb6b50ec7a9572c1eb2cb0
parentd7b13edd4cb4bfa335b6008ab867ac28582d3e5c
media: pvrusb2: use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Reviewed-by: Tommaso Merciai <tommaso.merciai@amarulasolutions.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/usb/pvrusb2/pvrusb2-sysfs.c