static int pm8921_read_irq_stat(const struct device *dev, int irq) { const struct pm8xxx_drvdata *pm8921_drvdata = dev_get_drvdata(dev); const struct pm8921 *pmic = pm8921_drvdata->pm_chip_data; return pm8xxx_get_irq_stat(pmic->irq_chip, irq); }
static int pm8xxx_irq_read_line(struct irq_data *d) { struct pm_irq_chip *chip = irq_data_get_irq_chip_data(d); return pm8xxx_get_irq_stat(chip, d->irq); }