summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/max8997-irq.c
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2016-09-14 11:44:27 +0200
committerLee Jones <lee.jones@linaro.org>2016-10-04 16:48:05 +0200
commitc646e2b115b0a23a013b91df5c54c8f5d06e607b (patch)
treea23283390fa2dfcca9fd26537943bd4821650be1 /drivers/mfd/max8997-irq.c
parentmfd: rk808: Fix RK818_IRQ_DISCHG_ILIM initializer (diff)
downloadlinux-c646e2b115b0a23a013b91df5c54c8f5d06e607b.tar.xz
linux-c646e2b115b0a23a013b91df5c54c8f5d06e607b.zip
mfd: max8997-irq: 'inline' should be at the beginning of the declaration
Reported by [-Wold-style-declaration]. Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to '')
-rw-r--r--drivers/mfd/max8997-irq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/max8997-irq.c b/drivers/mfd/max8997-irq.c
index b95a46d79b9d..326f17b632a7 100644
--- a/drivers/mfd/max8997-irq.c
+++ b/drivers/mfd/max8997-irq.c
@@ -139,7 +139,7 @@ static void max8997_irq_sync_unlock(struct irq_data *data)
mutex_unlock(&max8997->irqlock);
}
-static const inline struct max8997_irq_data *
+inline static const struct max8997_irq_data *
irq_to_max8997_irq(struct max8997_dev *max8997, struct irq_data *data)
{
return &max8997_irqs[data->hwirq];