diff options
author | Greg Kroah-Hartman <[email protected]> | 2022-01-13 19:44:20 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2022-01-25 18:27:02 +0100 |
commit | c9d967b2ce40d71e968eb839f36c936b8a9cf1ea (patch) | |
tree | d512366764e954e24966fd7faaae306d6bf23d49 /drivers/usb/cdns3/cdns3-trace.h | |
parent | e783362eb54cd99b2cac8b3a9aeac942e6f6ac07 (diff) |
PM: wakeup: simplify the output logic of pm_show_wakelocks()
The buffer handling in pm_show_wakelocks() is tricky, and hopefully
correct. Ensure it really is correct by using sysfs_emit_at() which
handles all of the tricky string handling logic in a PAGE_SIZE buffer
for us automatically as this is a sysfs file being read from.
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Lee Jones <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.h')
0 files changed, 0 insertions, 0 deletions