[PATCH linux-next] pinctrl: qcom: remove duplicate include

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 6b941a80348b4d8b862072ecec4df41a43368c60 Mon Sep 17 00:00:00 2001
From: zhang songyi <zhang.songyi@xxxxxxxxxx>
Date: Wed, 2 Nov 2022 10:21:53 +0800
Subject: [PATCH linux-next] pinctrl: qcom: remove duplicate include

'linux/seq_file.h' included in
'drivers/pinctrl/qcom/pinctrl-lpass-lpi.c,
drivers/pinctrl/qcom/pinctrl-msm.c,
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c,
drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c' is duplicated.

Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
Signed-off-by: zhang songyi <zhang.songyi@xxxxxxxxxx>
---
 drivers/pinctrl/qcom/pinctrl-lpass-lpi.c | 2 --
 drivers/pinctrl/qcom/pinctrl-msm.c       | 2 --
 drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 2 --
 drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c  | 2 --
 4 files changed, 8 deletions(-)

diff --git a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c
index d5cfa91e2eff..90648fc11647 100644
--- a/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c
+++ b/drivers/pinctrl/qcom/pinctrl-lpass-lpi.c
@@ -283,8 +283,6 @@ static void lpi_gpio_set(struct gpio_chip *chip, unsigned int pin, int value)
 }

 #ifdef CONFIG_DEBUG_FS
-#include <linux/seq_file.h>
-
 static unsigned int lpi_regval_to_drive(u32 val)
 {
    return (val + 1) * 2;
diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c
index 8fbb953c4bbe..0d2d3e83e929 100644
--- a/drivers/pinctrl/qcom/pinctrl-msm.c
+++ b/drivers/pinctrl/qcom/pinctrl-msm.c
@@ -622,8 +622,6 @@ static void msm_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
 }

 #ifdef CONFIG_DEBUG_FS
-#include <linux/seq_file.h>
-
 static void msm_gpio_dbg_show_one(struct seq_file *s,
                  struct pinctrl_dev *pctldev,
                  struct gpio_chip *chip,
diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
index b1748791a01e..cf69f208dfb8 100644
--- a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
+++ b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
@@ -536,8 +536,6 @@ static int pm8xxx_gpio_of_xlate(struct gpio_chip *chip,


 #ifdef CONFIG_DEBUG_FS
-#include <linux/seq_file.h>
-
 static void pm8xxx_gpio_dbg_show_one(struct seq_file *s,
                  struct pinctrl_dev *pctldev,
                  struct gpio_chip *chip,
diff --git a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c
index 30a934245c1b..71bbf1f1599a 100644
--- a/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c
+++ b/drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c
@@ -536,8 +536,6 @@ static int pm8xxx_mpp_of_xlate(struct gpio_chip *chip,


 #ifdef CONFIG_DEBUG_FS
-#include <linux/seq_file.h>
-
 static void pm8xxx_mpp_dbg_show_one(struct seq_file *s,
                  struct pinctrl_dev *pctldev,
                  struct gpio_chip *chip,
--
2.15.2



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [Linux for Sparc]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux