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>
This commit is contained in:
parent
1b57537530
commit
672e844692
|
@ -8,7 +8,7 @@
|
||||||
#include <device/pci_ops.h>
|
#include <device/pci_ops.h>
|
||||||
#include <device/pciexp.h>
|
#include <device/pciexp.h>
|
||||||
|
|
||||||
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_offset, next_cap_offset;
|
||||||
unsigned int this_cap, cafe;
|
unsigned int this_cap, cafe;
|
||||||
|
|
|
@ -30,7 +30,7 @@ void pciexp_hotplug_scan_bridge(struct device *dev);
|
||||||
|
|
||||||
extern struct device_operations default_pciexp_hotplug_ops_bus;
|
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)
|
static inline bool pciexp_is_downstream_port(int type)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue