soc/intel/common/block: Add const qualifier for input of pirq ops
Add const qualifer for itss_get_on_chip_dev_pirq and itss_soc_get_on_chip_dev_pir so that these ops could be used for both struct device * input and const struct device * input. Change-Id: I65b4de3f51b109bfcabfaa0ebe47a22bdd69d1a0 Signed-off-by: Shuo Liu <shuo.liu@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/85283 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: <yuchi.chen@intel.com>
This commit is contained in:
parent
afc49fa013
commit
223dabef56
3 changed files with 4 additions and 4 deletions
|
|
@ -48,10 +48,10 @@ void itss_irq_init(const uint8_t pch_interrupt_routing[PIRQ_COUNT]);
|
|||
void itss_clock_gate_8254(void);
|
||||
|
||||
/* SoC implementation to return corresponding PIR register offset. */
|
||||
uint32_t itss_soc_get_on_chip_dev_pir(struct device *dev);
|
||||
uint32_t itss_soc_get_on_chip_dev_pir(const struct device *dev);
|
||||
|
||||
/* Return which PIRQx the device's INTx is connected to. */
|
||||
enum pirq itss_get_on_chip_dev_pirq(struct device *dev, enum pci_pin pin);
|
||||
enum pirq itss_get_on_chip_dev_pirq(const struct device *dev, enum pci_pin pin);
|
||||
|
||||
#endif /* !defined(__ACPI__) */
|
||||
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ void itss_restore_irq_polarities(int start, int end)
|
|||
show_irq_polarities("After");
|
||||
}
|
||||
|
||||
enum pirq itss_get_on_chip_dev_pirq(struct device *dev, enum pci_pin pin)
|
||||
enum pirq itss_get_on_chip_dev_pirq(const struct device *dev, enum pci_pin pin)
|
||||
{
|
||||
/* Check if device is on chip. */
|
||||
if (dev->upstream->dev->path.type != DEVICE_PATH_DOMAIN)
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
#include "ramstage.h"
|
||||
|
||||
uint32_t itss_soc_get_on_chip_dev_pir(struct device *dev)
|
||||
uint32_t itss_soc_get_on_chip_dev_pir(const struct device *dev)
|
||||
{
|
||||
/* Check if device is on chip. */
|
||||
if (dev->upstream->dev->path.type != DEVICE_PATH_DOMAIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue