Skip to content

Commit b4feabe

Browse files
arndbLee Jones
authored andcommitted
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>
1 parent fe62c47 commit b4feabe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/mfd/tps65217.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static void tps65217_irq_sync_unlock(struct irq_data *data)
8282
mutex_unlock(&tps->irq_lock);
8383
}
8484

85-
static const inline struct tps65217_irq *
85+
static inline const struct tps65217_irq *
8686
irq_to_tps65217_irq(struct tps65217 *tps, struct irq_data *data)
8787
{
8888
return &tps65217_irqs[data->hwirq];

0 commit comments

Comments
 (0)