From 672e84469210acb2ab5979650c3062ce45602cea Mon Sep 17 00:00:00 2001 From: Tim Wawrzynczak Date: Wed, 19 Jan 2022 11:22:51 -0700 Subject: 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 Change-Id: I300d2a59eb0513ddd08d4f1d2a3c6eb829e3f836 Reviewed-on: https://review.coreboot.org/c/coreboot/+/61214 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons --- src/device/pciexp_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/device') diff --git a/src/device/pciexp_device.c b/src/device/pciexp_device.c index 5e2709e38a..e0b3544874 100644 --- a/src/device/pciexp_device.c +++ b/src/device/pciexp_device.c @@ -8,7 +8,7 @@ #include #include -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) { unsigned int this_cap_offset, next_cap_offset; unsigned int this_cap, cafe; -- cgit v1.2.3