media: atomisp: Use sysfs_emit() instead of sprintf() where appropriate
authorNguyen Dinh Phi <phind.uet@gmail.com>
Thu, 13 May 2021 03:46:50 +0000 (05:46 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 12:01:56 +0000 (14:01 +0200)
commit2c08a018f0d5f3902d4e1cbf99e3858477ac0515
tree9620e9bbf498726cd41332ee485509cdbfc3f344
parent6b6d22831331434b6a1b5b557bc235ca9df420e0
media: atomisp: Use sysfs_emit() instead of sprintf() where appropriate

sysfs_emit() is preferred over raw sprintf() for sysfs attributes since it
knows about the sysfs buffer specifics and has some built-in sanity checks.

Link: https://lore.kernel.org/linux-media/20210513034650.252993-1-phind.uet@gmail.com
Signed-off-by: Nguyen Dinh Phi <phind.uet@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_drvfs.c