mfd: max8925: Remove the unused function irq_to_max8925()
PATCH 1/1 mfd: max8925: Remove the unused function irq_to_max8925()
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'.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/mfd/max8925-core.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/mfd/max8925-core.c +0 -6
@@ -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;
Signature · 1 line
2.20.1.7.g153144c
Quoted 11 lines · Jiapeng Chong
The function
irq_to_max8925()is defined in themax8925-core.cfile, but not called elsewhere, so remove this unused function.
drivers/mfd/max8925-core.c:472:40: warning: unused function 'irq_to_max8925'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>--- drivers/mfd/max8925-core.c | 6 ------ 1 file changed, 6 deletions(-)
Applied, thanks
Signature · 1 line
Lee Jones [李琼斯]