Bjorn Helgaas ee8b1c478a PCI: Return u16 from pci_find_ext_capability() and similar
PCI Express Extended Capabilities are in config space between offsets 256
and 4K.  These offsets all fit in 16 bits.

Change the return type of pci_find_ext_capability() and supporting
functions from int to u16 to match the specification.  Many callers use
"int", which is fine, but there's no need to store more than a u16.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
2020-12-04 15:14:07 -06:00
..
2020-10-22 12:41:00 -07:00
2020-10-30 13:11:46 -07:00
2020-10-24 10:44:18 -07:00
2020-10-23 11:17:56 -07:00
2020-10-24 10:33:08 -07:00
2020-10-30 10:06:09 +01:00
2020-10-28 09:14:49 -03:00
2020-10-23 16:19:02 -07:00
2020-10-24 10:39:22 -07:00
2020-11-20 12:35:27 -06:00
2020-10-25 10:55:35 -07:00