ACPI: replace snprintf() in "show" functions with sysfs_emit()
authorQing Wang <wangqing@vivo.com>
Wed, 13 Oct 2021 03:24:50 +0000 (20:24 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Oct 2021 18:02:18 +0000 (20:02 +0200)
commitd47e983e4f612856c860ae04db054ebcf4a333c3
treef6ca4bec83a2236f7cafc8c755f4d65c5a30c659
parent5771e582d79258333a1cf817db999f58384e5685
ACPI: replace snprintf() in "show" functions with sysfs_emit()

coccicheck complains about the use of snprintf() in sysfs "show"
functions:

Fix the coccicheck warning:
WARNING: use scnprintf or sprintf.

so use sysfs_emit() instead of it where applicable.

Signed-off-by: Qing Wang <wangqing@vivo.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_lpss.c
drivers/acpi/dock.c