]> git.dujemihanovic.xyz Git - u-boot.git/commit
pci: Use const for pci_find_device_id() etc.
authorSimon Glass <sjg@chromium.org>
Sun, 27 Jun 2021 23:50:56 +0000 (17:50 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Jul 2021 11:49:46 +0000 (19:49 +0800)
commite58f3a7d9b7e5961ca7e362bffd01a134ad3b831
tree954cfc72aecf5f32280a7977ddfff1d94efa8bc0
parentc11f5abce84f630c92304683d5bde3204c5612c4
pci: Use const for pci_find_device_id() etc.

These functions don't modify the device-ID struct that is passed in, so
mark the argument as const, so the data structure can be declared that
way. This allows it to be placed in the rodata section.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c
include/pci.h