Skip to content
Commit 2a998392 authored by Qing Wang's avatar Qing Wang Committed by Mauro Carvalho Chehab
Browse files

media: i2c: ccs: replace snprintf in show functions with sysfs_emit



show() should not use snprintf() when formatting the value to be
returned to user space.

Fix the following coccicheck warning:
drivers/media/i2c/ccs/ccs-core.c:3761: WARNING: use scnprintf or sprintf.

Signed-off-by: default avatarQing Wang <wangqing@vivo.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 85db29d2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment