Skip to content

Commit 22d7fe4

Browse files
author
Linus Walleij
committed
pinctrl: mtk: Fix up GPIO includes
Include only <linux/gpio/driver.h> since this is a driver, not a consumer. Cc: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 994f886 commit 22d7fe4

6 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/pinctrl/mediatek/pinctrl-moore.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*
99
*/
1010

11+
#include <linux/gpio/driver.h>
1112
#include "pinctrl-moore.h"
1213

1314
#define PINCTRL_PINCTRL_DEV KBUILD_MODNAME

‎drivers/pinctrl/mediatek/pinctrl-moore.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#ifndef __PINCTRL_MOORE_H
99
#define __PINCTRL_MOORE_H
1010

11-
#include <linux/gpio.h>
12-
#include <linux/gpio/driver.h>
1311
#include <linux/io.h>
1412
#include <linux/init.h>
1513
#include <linux/of.h>

‎drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
#include <linux/device.h>
1010
#include <linux/err.h>
11-
#include <linux/gpio.h>
11+
#include <linux/gpio/driver.h>
1212
#include <linux/platform_device.h>
1313
#include <linux/io.h>
1414
#include <linux/of_irq.h>

‎drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#ifndef __PINCTRL_MTK_COMMON_V2_H
1010
#define __PINCTRL_MTK_COMMON_V2_H
1111

12+
#include <linux/gpio/driver.h>
13+
1214
#define MTK_INPUT 0
1315
#define MTK_OUTPUT 1
1416
#define MTK_DISABLE 0

‎drivers/pinctrl/mediatek/pinctrl-paris.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* Hongzhou.Yang <hongzhou.yang@mediatek.com>
1010
*/
1111

12+
#include <linux/gpio/driver.h>
1213
#include <dt-bindings/pinctrl/mt65xx.h>
1314
#include "pinctrl-paris.h"
1415

‎drivers/pinctrl/mediatek/pinctrl-paris.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
#ifndef __PINCTRL_PARIS_H
1010
#define __PINCTRL_PARIS_H
1111

12-
#include <linux/gpio.h>
13-
#include <linux/gpio/driver.h>
1412
#include <linux/io.h>
1513
#include <linux/init.h>
1614
#include <linux/of.h>

0 commit comments

Comments
 (0)