Commit ac160871 authored by Shuai Xue's avatar Shuai Xue Committed by Will Deacon
Browse files

PCI: Move pci_clear_and_set_dword() helper to PCI header



The clear and set pattern is commonly used for accessing PCI config,
move the helper pci_clear_and_set_dword() from aspm.c into PCI header.
In addition, rename to pci_clear_and_set_config_dword() to retain the
"config" information and match the other accessors.

No functional change intended.

Signed-off-by: default avatarShuai Xue <xueshuai@linux.alibaba.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Tested-by: default avatarIlkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20231208025652.87192-4-xueshuai@linux.alibaba.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ad6534c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment