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>
This commit is contained in:
Arnd Bergmann 2016-09-14 10:13:28 +02:00 committed by Lee Jones
parent fe62c477df
commit b4feabe917
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ static void tps65217_irq_sync_unlock(struct irq_data *data)
mutex_unlock(&tps->irq_lock);
}
static const inline struct tps65217_irq *
static inline const struct tps65217_irq *
irq_to_tps65217_irq(struct tps65217 *tps, struct irq_data *data)
{
return &tps65217_irqs[data->hwirq];