summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/config.py
diff options
context:
space:
mode:
authorHans Zhang <18255117159@163.com>2025-08-13 22:45:24 +0800
committerBjorn Helgaas <bhelgaas@google.com>2025-08-14 15:03:34 -0500
commit37d1ade89606875c9cd6eb3b4ee416b7e1800fc4 (patch)
tree32139f70a9a30f541bbe2bb9f3edf8bb4d8ed9e2 /scripts/gdb/linux/config.py
parent8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff)
PCI: Clean up __pci_find_next_cap_ttl() readability
Refactor the __pci_find_next_cap_ttl() to improve code clarity: - Replace magic number 0x40 with PCI_STD_HEADER_SIZEOF. - Use ALIGN_DOWN() for position alignment instead of manual bitmask. - Extract PCI capability fields via FIELD_GET() with standardized masks. - Add necessary headers (linux/align.h). No functional changes intended. Signed-off-by: Hans Zhang <18255117159@163.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Tested-by: Niklas Schnelle <schnelle@linux.ibm.com> Acked-by: Manivannan Sadhasivam <mani@kernel.org> Link: https://patch.msgid.link/20250813144529.303548-2-18255117159@163.com
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions