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>
Fri, 23 Jul 2021 07:04:02 +0000 (09:04 +0200)
commite53656ab8c806b26f85238af341d93e6792d1ee6
tree9620e9bbf498726cd41332ee485509cdbfc3f344
parent66b22424ad271d762948da0fda55b21d08327029
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