]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: esas2r: Prefer pcie_capability_read_word()
authorFrederick Lawler <fred@fredlawl.com>
Thu, 18 Jul 2019 02:07:44 +0000 (21:07 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 02:04:06 +0000 (22:04 -0400)
commitc38b3e754ef5752cf9ace8dca9c27b8eda98a2d4
tree3b3bb8612b54efc28832d26eab721509e1b77260
parenta08ce7fcbb1966eea150b225e7acb6befe56fd86
scsi: esas2r: Prefer pcie_capability_read_word()

Commit d2869a3f820b ("PCI: Add accessors for PCI Express Capability") added
accessors for the PCI Express Capability so that drivers didn't need to be
aware of differences between v1 and v2 of the PCI Express Capability.

Replace pci_read_config_word() and pci_write_config_word() calls with
pcie_capability_read_word() and pcie_capability_write_word().

Signed-off-by: Frederick Lawler <fred@fredlawl.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/esas2r/esas2r_init.c
drivers/scsi/esas2r/esas2r_ioctl.c