memstick/mspro_block: Convert to use sysfs_emit()/sysfs_emit_at() APIs
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 8 Dec 2022 03:38:19 +0000 (11:38 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 9 Dec 2022 09:29:58 +0000 (10:29 +0100)
commit0c35997020c462ab0be8ee8d62919c14f63631f2
tree32b15bf5bd5f000348b0296e6b991965d0bfa123
parentacc13958c2b2623c17e2450b8cd6881b698756d3
memstick/mspro_block: Convert to use sysfs_emit()/sysfs_emit_at() APIs

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>
Link: https://lore.kernel.org/r/202212081138191215291@zte.com.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/memstick/core/mspro_block.c