summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2022-01-19 11:22:51 -0700
committerFelix Held <felix-coreboot@felixheld.de>2022-01-24 17:28:39 +0000
commit672e84469210acb2ab5979650c3062ce45602cea (patch)
tree2a7b3bd2e8fed35670ad50d9dac6927ccc5b5eed /src/include/device
parent1b57537530e5b5b1f9d7156af044794f18ab8237 (diff)
device: constify pciexp_find_extended_cap()
The object pointed to by the struct device * argument is not modified, therefore it can be made const. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I300d2a59eb0513ddd08d4f1d2a3c6eb829e3f836 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61214 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/pciexp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/device/pciexp.h b/src/include/device/pciexp.h
index 756733e0d8..a72c2ec2a9 100644
--- a/src/include/device/pciexp.h
+++ b/src/include/device/pciexp.h
@@ -30,7 +30,7 @@ void pciexp_hotplug_scan_bridge(struct device *dev);
extern struct device_operations default_pciexp_hotplug_ops_bus;
-unsigned int pciexp_find_extended_cap(struct device *dev, unsigned int cap);
+unsigned int pciexp_find_extended_cap(const struct device *dev, unsigned int cap);
static inline bool pciexp_is_downstream_port(int type)
{