summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-14 10:13:28 +0200
committerLee Jones <lee.jones@linaro.org>2016-10-04 15:48:05 +0100
commitb4feabe917ee6995c80e2a53b84946d606e78e89 (patch)
treedd619d680108f0b17014d0800b88db1db7f20a45 /drivers/mfd
parentfe62c477df0c9501dea8c16d78e722c902737a53 (diff)
downloadlinux-b4feabe917ee6995c80e2a53b84946d606e78e89.tar.gz
linux-b4feabe917ee6995c80e2a53b84946d606e78e89.tar.bz2
linux-b4feabe917ee6995c80e2a53b84946d606e78e89.zip
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/tps65217.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index 57c87412106f..9a4d8684dd32 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -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];