]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: Use FIELD_GET() in Sapphire RX 5600 XT Pulse quirk
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 10 Oct 2023 20:44:28 +0000 (15:44 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 16:56:19 +0000 (16:56 +0000)
commit3453f945af89c4a0971a47188207d0d1e1acc452
treec6de598a9e52054f7c33471685abb079ba9256cf
parent0a93a0f99a09a1319fe89c422f56255da3b4ec0c
PCI: Use FIELD_GET() in Sapphire RX 5600 XT Pulse quirk

[ Upstream commit 04e82fa5951ca66495d7b05665eff673aa3852b4 ]

Use FIELD_GET() to remove dependences on the field position, i.e., the
shift value.  No functional change intended.

Separate because this isn't as trivial as the other FIELD_GET() changes.

See 907830b0fc9e ("PCI: Add a REBAR size quirk for Sapphire RX 5600 XT
Pulse")

Link: https://lore.kernel.org/r/20231010204436.1000644-3-helgaas@kernel.org
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Cc: Nirmoy Das <nirmoy.das@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/pci.c