]> asedeno.scripts.mit.edu Git - linux.git/commit
media: cobalt: Prefer pcie_capability_read_word()
authorFrederick Lawler <fred@fredlawl.com>
Thu, 18 Jul 2019 02:07:40 +0000 (22:07 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 23 Jul 2019 15:41:00 +0000 (11:41 -0400)
commit6732ecb335f5c8957ae319f50949b15f78d54621
treed00bce4443a4eb83a021ff44410ea88a8e2e7aac
parentec8b22b4bd8e9d797bbafc5b2a941e215587c8b5
media: cobalt: Prefer pcie_capability_read_word()

Commit 8c0d3a02c130 ("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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/cobalt/cobalt-driver.c