mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:07:50 +01:00
mfd: da9062: Use DEFINE_RES_IRQ_NAMED()
Use the dedicated DEFINE_RES_IRQ_NAMED() helper for the DA9062 IRQ resources instead of open-coding it with DEFINE_RES_NAMED(). This makes the intended resource type explicit and keeps the definitions consistent with the DA9061 resources. This is a mechanical cleanup with no functional change. With an x86_64 allmodconfig and W=1, drivers/mfd/da9062-core.o builds successfully and is byte-identical before and after this change. Assisted-by: Codex:gpt-5 coccinelle Signed-off-by: Hiroki Nakajima <3na7nanana@gmail.com> Link: https://patch.msgid.link/20260823174248.833535-1-3na7nanana@gmail.com Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
fd2258999e
commit
021accc07b
|
|
@ -203,36 +203,36 @@ static const struct mfd_cell da9061_devs_noirq[] = {
|
|||
};
|
||||
|
||||
static const struct resource da9062_core_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_VDD_WARN, 1, "VDD_WARN", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_VDD_WARN, "VDD_WARN"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_regulators_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_LDO_LIM, 1, "LDO_LIM", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_LDO_LIM, "LDO_LIM"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_thermal_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_TEMP, 1, "THERMAL", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_TEMP, "THERMAL"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_wdt_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_WDG_WARN, 1, "WD_WARN", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_WDG_WARN, "WD_WARN"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_rtc_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_ALARM, 1, "ALARM", IORESOURCE_IRQ),
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_TICK, 1, "TICK", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_ALARM, "ALARM"),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_TICK, "TICK"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_onkey_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_ONKEY, 1, "ONKEY", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_ONKEY, "ONKEY"),
|
||||
};
|
||||
|
||||
static const struct resource da9062_gpio_resources[] = {
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_GPI0, 1, "GPI0", IORESOURCE_IRQ),
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_GPI1, 1, "GPI1", IORESOURCE_IRQ),
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_GPI2, 1, "GPI2", IORESOURCE_IRQ),
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_GPI3, 1, "GPI3", IORESOURCE_IRQ),
|
||||
DEFINE_RES_NAMED(DA9062_IRQ_GPI4, 1, "GPI4", IORESOURCE_IRQ),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_GPI0, "GPI0"),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_GPI1, "GPI1"),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_GPI2, "GPI2"),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_GPI3, "GPI3"),
|
||||
DEFINE_RES_IRQ_NAMED(DA9062_IRQ_GPI4, "GPI4"),
|
||||
};
|
||||
|
||||
static const struct mfd_cell da9062_devs_irq[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user