* [PATCH] mfd: max8925: Remove the unused function irq_to_max8925()
@ 2022-12-27 8:18 Jiapeng Chong
2023-01-05 15:02 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Jiapeng Chong @ 2022-12-27 8:18 UTC (permalink / raw)
To: lee; +Cc: linux-kernel, Jiapeng Chong, Abaci Robot
The function irq_to_max8925() is defined in the max8925-core.c
file, but not called elsewhere, so remove this unused function.
drivers/mfd/max8925-core.c:472:40: warning: unused function 'irq_to_max8925'.
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3561
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/mfd/max8925-core.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/drivers/mfd/max8925-core.c b/drivers/mfd/max8925-core.c
index eb3f061c8ee6..0246bbe80354 100644
--- a/drivers/mfd/max8925-core.c
+++ b/drivers/mfd/max8925-core.c
@@ -469,12 +469,6 @@ static struct max8925_irq_data max8925_irqs[] = {
},
};
-static inline struct max8925_irq_data *irq_to_max8925(struct max8925_chip *chip,
- int irq)
-{
- return &max8925_irqs[irq - chip->irq_base];
-}
-
static irqreturn_t max8925_irq(int irq, void *data)
{
struct max8925_chip *chip = data;
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-05 15:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-27 8:18 [PATCH] mfd: max8925: Remove the unused function irq_to_max8925() Jiapeng Chong
2023-01-05 15:02 ` Lee Jones
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.