device: Add const qualifier for input of dev_is_active_bridge
Add const qualifier for input of dev_is_active_bridge so that dev_is_active_bridge could be used for both struct device * input and const struct device * input. TESTED=Build and boot on intel/avenuecity CRB Change-Id: Ia4231534c87cd13d4e6e4d606733f9eb11221ac1 Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85150 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
d22078a3c3
commit
8214eeb212
2 changed files with 2 additions and 2 deletions
|
|
@ -655,7 +655,7 @@ void disable_children(struct bus *bus)
|
|||
* Returns true if the device is an enabled bridge that has at least
|
||||
* one enabled device on its secondary bus that is not of type NONE.
|
||||
*/
|
||||
bool dev_is_active_bridge(struct device *dev)
|
||||
bool dev_is_active_bridge(const struct device *dev)
|
||||
{
|
||||
struct device *child;
|
||||
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ const struct device *dev_get_domain(const struct device *dev);
|
|||
unsigned int dev_get_domain_id(const struct device *dev);
|
||||
void dev_set_enabled(struct device *dev, int enable);
|
||||
void disable_children(struct bus *bus);
|
||||
bool dev_is_active_bridge(struct device *dev);
|
||||
bool dev_is_active_bridge(const struct device *dev);
|
||||
bool is_dev_enabled(const struct device *const dev);
|
||||
bool is_devfn_enabled(unsigned int devfn);
|
||||
bool is_cpu(const struct device *cpu);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue