DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_USB, "USB"),
};
+static struct resource pb_resources[] = {
+ DEFINE_RES_IRQ_NAMED(TPS65217_IRQ_PB, "PB"),
+};
+
struct tps65217_irq {
int mask;
int interrupt;
.resources = charger_resources,
.of_compatible = "ti,tps65217-charger",
},
+ {
+ .name = "tps65217-pwrbutton",
+ .num_resources = ARRAY_SIZE(pb_resources),
+ .resources = pb_resources,
+ .of_compatible = "ti,tps65217-pwrbutton",
+ },
};
static irqreturn_t tps65217_irq_thread(int irq, void *data)