ACPI: configfs: Use sysfs_emit() in "show" functions
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Jul 2021 14:16:50 +0000 (17:16 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 16 Jul 2021 17:20:28 +0000 (19:20 +0200)
commitae57338716ce2e230514be54a06c9bfaa84433a7
treea706ded1b841e2843a8fac3be6f2df9368a94bed
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
ACPI: configfs: Use sysfs_emit() in "show" functions

The sysfs_emit() function was introduced to make it less ambiguous
which function is preferred when writing to the output buffer in
a "show" callback [1].

Convert the GPIO library sysfs interface from sprintf() to sysfs_emit()
accordingly, as the latter is aware of the PAGE_SIZE buffer and correctly
returns the number of bytes written into the buffer.

No functional change intended.

[1] Documentation/filesystems/sysfs.rst

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_configfs.c