Skip to content
Commit 982c5953 authored by Qing Wang's avatar Qing Wang Committed by Stephen Boyd
Browse files

clk-si5341: replace snprintf in show functions with sysfs_emit



coccicheck complains about the use of snprintf() in sysfs show functions.

Fix the following coccicheck warning:
drivers/clk/clk-si5341.c:1471: WARNING: use scnprintf or sprintf.
drivers/clk/clk-si5341.c:1486: WARNING: use scnprintf or sprintf.
drivers/clk/clk-si5341.c:1501: WARNING: use scnprintf or sprintf.
drivers/clk/clk-si5341.c:1516: WARNING: use scnprintf or sprintf.

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Signed-off-by: default avatarQing Wang <wangqing@vivo.com>
Link: https://lore.kernel.org/r/1634280331-4150-1-git-send-email-wangqing@vivo.com


Reviewed-by: default avatarRobert Hancock <robert.hancock@calian.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 2a8b5394
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment