diff options
author | Dan Williams <dan.j.williams@intel.com> | 2023-12-20 05:15:13 +0300 |
---|---|---|
committer | Ira Weiny <ira.weiny@intel.com> | 2024-01-03 23:21:37 +0300 |
commit | a085a5eb6594a3ebe5c275e9c2c2d341f686c23c (patch) | |
tree | fb52f3ad364fa0bee950fd066a71b4b4f899957e /drivers/acpi/tiny-power-button.c | |
parent | fd045e5f99723db573d671d0484543f61dc496f5 (diff) | |
download | linux-a085a5eb6594a3ebe5c275e9c2c2d341f686c23c.tar.xz |
acpi/nfit: Use sysfs_emit() for all attributes
sysfs_emit() properly handles the PAGE_SIZE limitation of populating
sysfs attribute buffers. Clean up the deprecated usage of sprintf() in
all of nfit's sysfs show() handlers.
Reported-by: Ben Dooks <ben.dooks@codethink.co.uk>
Closes: http://lore.kernel.org/0d1bf461-d9e8-88bc-b7e2-b03b56594213@codethink.co.uk
Cc: Alison Schofield <alison.schofield@intel.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/170303851337.2238503.5103082574938957743.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Diffstat (limited to 'drivers/acpi/tiny-power-button.c')
0 files changed, 0 insertions, 0 deletions