瀏覽代碼

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>
Lee Jones 9 年之前
父節點
當前提交
c646e2b115
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/mfd/max8997-irq.c

+ 1 - 1
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];