]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: greybus: arche: use sysfs_emit() instead of sprintf()
authorRuslan Valiyev <linuxoid@gmail.com>
Thu, 26 Feb 2026 07:48:58 +0000 (07:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2026 16:02:59 +0000 (17:02 +0100)
commit7b6f321f6967f9d224b7c1f19f5efa98a0e2099b
tree060c69eb53780dedebd15e85410ffdbd5c3a80bc
parent1f659f1cdf85601a19b64b5245b12f015606f189
staging: greybus: arche: use sysfs_emit() instead of sprintf()

Replace sprintf() with sysfs_emit() in state_show() sysfs attribute
callbacks in arche-platform.c and arche-apb-ctrl.c.

Checkpatch complains about code using sprintf(). This code here is
obviously safe as-is, but it would be more appropriate to use
sysfs_emit().

Signed-off-by: Ruslan Valiyev <linuxoid@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260226074858.67635-1-linuxoid@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/arche-apb-ctrl.c