]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: ccs: replace snprintf in show functions with sysfs_emit
authorQing Wang <wangqing@vivo.com>
Mon, 18 Oct 2021 08:00:36 +0000 (09:00 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 08:11:34 +0000 (08:11 +0000)
commit2dc40227408321668a3ef594fdfa56e058d583ce
treebe672b14cb635fd0892b33ebce310aae28196ec1
parent2a8bb174f2076d1a1d7fea12d3b82f8cd3f3d6bf
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: Qing Wang <wangqing@vivo.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/ccs/ccs-core.c