]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: dell-dcdbase: Replace snprintf in show functions with sysfs_emit
authorHongling Zeng <zenghongling@kylinos.cn>
Tue, 22 Oct 2024 03:05:00 +0000 (11:05 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 08:29:18 +0000 (11:29 +0300)
commit81e2cc3688cb0002d22207a0a5b11be230d4ecc4
treec1cbf4ad1a0b42c2a5b374ef1a9f5ceaa15b568a
parent90a7d74860044f12a359aa3611b5172b44b202dd
platform/x86: dell-dcdbase: Replace snprintf in show functions with sysfs_emit

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

Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn>
Link: https://lore.kernel.org/r/20241022030500.9986-1-zenghongling@kylinos.cn
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/dell/dcdbas.c