Re: [PATCH] platform/chrome: use sysfs_emit() to instead of scnprintf()

From: Tzung-Bi Shih
Date: Mon Dec 05 2022 - 01:18:59 EST


On Fri, Dec 02, 2022 at 04:56:04PM +0800, ye.xingchen@xxxxxxxxxx wrote:
> From: ye xingchen <ye.xingchen@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>

Fixed the commit message a bit and queued the patch.

Also, I found a little more here: https://patchwork.kernel.org/project/chrome-platform/patch/20221205061042.1774769-1-tzungbi@xxxxxxxxxx/