linux/drivers/pci/pcie
Krzysztof Wilczyński f8cf6e513e PCI/sysfs: Use sysfs_emit() and sysfs_emit_at() in "show" functions
The sysfs_emit() and sysfs_emit_at() functions were introduced to make
it less ambiguous which function is preferred when writing to the output
buffer in a device attribute's "show" callback [1].

Convert the PCI sysfs object "show" functions from sprintf(), snprintf()
and scnprintf() to sysfs_emit() and sysfs_emit_at() 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

Related commit: ad025f8e46 ("PCI/sysfs: Use sysfs_emit() and
sysfs_emit_at() in "show" functions").

Link: https://lore.kernel.org/r/20210603000112.703037-2-kw@linux.com
Signed-off-by: Krzysztof Wilczyński <kw@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
2021-06-03 22:14:47 -05:00
..
aer_inject.c PCI/AER: Add RCEC AER error injection support 2020-12-05 15:26:02 -06:00
aer.c PCI/sysfs: Use sysfs_emit() and sysfs_emit_at() in "show" functions 2021-06-03 22:14:47 -05:00
aspm.c PCI/sysfs: Use sysfs_emit() and sysfs_emit_at() in "show" functions 2021-06-03 22:14:47 -05:00
dpc.c PCI: pciehp: Reduce noisiness on hot removal 2020-09-17 16:22:36 -05:00
edr.c PCI/EDR: Log only ACPI_NOTIFY_DISCONNECT_RECOVER events 2020-04-24 18:33:29 -05:00
err.c PCI/ERR: Retain status from error notification 2021-02-23 17:10:42 -06:00
Kconfig PCI/LINK: Remove bandwidth notification 2021-02-02 14:25:11 -06:00
Makefile PCI/LINK: Remove bandwidth notification 2021-02-02 14:25:11 -06:00
pme.c PCI: Fix kernel-doc errors 2021-03-11 17:37:20 -06:00
portdrv_core.c PCI/PME: Add pcie_walk_rcec() to RCEC PME handling 2020-12-05 15:26:02 -06:00
portdrv_pci.c Merge branch 'pci/link' 2021-02-24 14:59:18 -06:00
portdrv.h PCI/LINK: Remove bandwidth notification 2021-02-02 14:25:11 -06:00
ptm.c PCI: Disable PTM during suspend to save power 2020-12-10 14:45:14 -06:00
rcec.c PCI/RCEC: Fix RCiEP device to RCEC association 2021-03-10 15:10:46 -06:00