Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: tps65217: Fix nonstandard declaration

The tps65217 gained a new warning when building with W=1:

drivers/mfd/tps65217.c:85:1: error: 'inline' is not at beginning of declaration [-Werror=old-style-declaration]

This fixes it by putting the 'inline' modifier before 'const'.

Fixes: 262d5cc6ceb2 ("mfd: tps65217: Add support for IRQs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Arnd Bergmann and committed by
Lee Jones
b4feabe9 fe62c477

+1 -1
+1 -1
drivers/mfd/tps65217.c
··· 82 82 mutex_unlock(&tps->irq_lock); 83 83 } 84 84 85 - static const inline struct tps65217_irq * 85 + static inline const struct tps65217_irq * 86 86 irq_to_tps65217_irq(struct tps65217 *tps, struct irq_data *data) 87 87 { 88 88 return &tps65217_irqs[data->hwirq];