remoteproc: sysfs: Use sysfs_emit instead of sprintf
authorRaghavendra Rao Ananta <rananta@codeaurora.org>
Wed, 3 Mar 2021 21:47:02 +0000 (13:47 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 8 Mar 2021 18:27:21 +0000 (12:27 -0600)
commit145e1da374bcba14c9ca069646f68b76c422612a
treeb2a11ca22ee285adac76539c2e488022a5c30184
parenta38fd8748464831584a19438cbb3082b5a2dab15
remoteproc: sysfs: Use sysfs_emit instead of sprintf

For security reasons sysfs_emit() is preferred over sprintf().
Hence, convert the remoteproc's sysfs show functions accordingly.

Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Link: https://lore.kernel.org/r/1614808022-26062-1-git-send-email-sidgup@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_sysfs.c