net: ipa: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Fri, 2 Dec 2022 08:42:14 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2022 11:03:49 +0000 (11:03 +0000)
commit38db82e29404d462b71bc3ac2149fbaf0c41fc7c
treeb5c2afce29a5dd55055ba0b2cbe40ed2a011bc2f
parent27e521c59e49603001cbee900f086ccf4a0e70b2
net: ipa: 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: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_sysfs.c