linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pinctrl: Fix Kconfig indentation
@ 2019-11-20 13:40 Krzysztof Kozlowski
  2019-11-20 14:15 ` Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Krzysztof Kozlowski @ 2019-11-20 13:40 UTC (permalink / raw)
  To: linux-kernel
  Cc: Krzysztof Kozlowski, Linus Walleij, Dong Aisheng, Fabio Estevam,
	Shawn Guo, Stefan Agner, Pengutronix Kernel Team,
	Bjorn Andersson, Andy Gross, linux-gpio, linux-arm-msm

Adjust indentation from spaces to tab (+optional two spaces) as in
coding style with command like:
	$ sed -e 's/^        /\t/' -i */Kconfig

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/pinctrl/Kconfig           | 18 ++++++++--------
 drivers/pinctrl/freescale/Kconfig | 12 +++++------
 drivers/pinctrl/qcom/Kconfig      | 34 +++++++++++++++----------------
 3 files changed, 32 insertions(+), 32 deletions(-)

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index b372419d61f2..25b6c830f2f1 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -32,15 +32,15 @@ config DEBUG_PINCTRL
 	  Say Y here to add some extra checks and diagnostics to PINCTRL calls.
 
 config PINCTRL_ARTPEC6
-        bool "Axis ARTPEC-6 pin controller driver"
-        depends on MACH_ARTPEC6
-        select PINMUX
-        select GENERIC_PINCONF
-        help
-          This is the driver for the Axis ARTPEC-6 pin controller. This driver
-          supports pin function multiplexing as well as pin bias and drive
-          strength configuration. Device tree integration instructions can be
-          found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
+	bool "Axis ARTPEC-6 pin controller driver"
+	depends on MACH_ARTPEC6
+	select PINMUX
+	select GENERIC_PINCONF
+	help
+	  This is the driver for the Axis ARTPEC-6 pin controller. This driver
+	  supports pin function multiplexing as well as pin bias and drive
+	  strength configuration. Device tree integration instructions can be
+	  found in Documentation/devicetree/bindings/pinctrl/axis,artpec6-pinctrl.txt
 
 config PINCTRL_AS3722
 	tristate "Pinctrl and GPIO driver for ams AS3722 PMIC"
diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig
index 5f4058033ec6..3ea9ce3e0cd9 100644
--- a/drivers/pinctrl/freescale/Kconfig
+++ b/drivers/pinctrl/freescale/Kconfig
@@ -39,12 +39,12 @@ config PINCTRL_IMX27
 
 
 config PINCTRL_IMX25
-        bool "IMX25 pinctrl driver"
-        depends on OF
-        depends on SOC_IMX25
-        select PINCTRL_IMX
-        help
-          Say Y here to enable the imx25 pinctrl driver
+	bool "IMX25 pinctrl driver"
+	depends on OF
+	depends on SOC_IMX25
+	select PINCTRL_IMX
+	help
+	  Say Y here to enable the imx25 pinctrl driver
 
 config PINCTRL_IMX35
 	bool "IMX35 pinctrl driver"
diff --git a/drivers/pinctrl/qcom/Kconfig b/drivers/pinctrl/qcom/Kconfig
index 4f5645245b06..dbdf615da94f 100644
--- a/drivers/pinctrl/qcom/Kconfig
+++ b/drivers/pinctrl/qcom/Kconfig
@@ -151,10 +151,10 @@ config PINCTRL_QCOM_SPMI_PMIC
        select GPIOLIB_IRQCHIP
        select IRQ_DOMAIN_HIERARCHY
        help
-         This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-         Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
-         which are using SPMI for communication with SoC. Example PMIC's
-         devices are pm8841, pm8941 and pma8084.
+	 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	 Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
+	 which are using SPMI for communication with SoC. Example PMIC's
+	 devices are pm8841, pm8941 and pma8084.
 
 config PINCTRL_QCOM_SSBI_PMIC
        tristate "Qualcomm SSBI PMIC pin controller driver"
@@ -165,10 +165,10 @@ config PINCTRL_QCOM_SSBI_PMIC
        select GPIOLIB_IRQCHIP
        select IRQ_DOMAIN_HIERARCHY
        help
-         This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-         Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
-         which are using SSBI for communication with SoC. Example PMIC's
-         devices are pm8058 and pm8921.
+	 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	 Qualcomm GPIO and MPP blocks found in the Qualcomm PMIC's chips,
+	 which are using SSBI for communication with SoC. Example PMIC's
+	 devices are pm8058 and pm8921.
 
 config PINCTRL_SC7180
 	tristate "Qualcomm Technologies Inc SC7180 pin controller driver"
@@ -184,26 +184,26 @@ config PINCTRL_SDM660
        depends on GPIOLIB && OF
        select PINCTRL_MSM
        help
-         This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-         Qualcomm Technologies Inc TLMM block found on the Qualcomm
-         Technologies Inc SDM660 platform.
+	 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	 Qualcomm Technologies Inc TLMM block found on the Qualcomm
+	 Technologies Inc SDM660 platform.
 
 config PINCTRL_SDM845
        tristate "Qualcomm Technologies Inc SDM845 pin controller driver"
        depends on GPIOLIB && (OF || ACPI)
        select PINCTRL_MSM
        help
-         This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-         Qualcomm Technologies Inc TLMM block found on the Qualcomm
-         Technologies Inc SDM845 platform.
+	 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	 Qualcomm Technologies Inc TLMM block found on the Qualcomm
+	 Technologies Inc SDM845 platform.
 
 config PINCTRL_SM8150
        tristate "Qualcomm Technologies Inc SM8150 pin controller driver"
        depends on GPIOLIB && OF
        select PINCTRL_MSM
        help
-         This is the pinctrl, pinmux, pinconf and gpiolib driver for the
-         Qualcomm Technologies Inc TLMM block found on the Qualcomm
-         Technologies Inc SM8150 platform.
+	 This is the pinctrl, pinmux, pinconf and gpiolib driver for the
+	 Qualcomm Technologies Inc TLMM block found on the Qualcomm
+	 Technologies Inc SM8150 platform.
 
 endif
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pinctrl: Fix Kconfig indentation
  2019-11-20 13:40 [PATCH] pinctrl: Fix Kconfig indentation Krzysztof Kozlowski
@ 2019-11-20 14:15 ` Ahmad Fatoum
  2019-11-21  1:27   ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Ahmad Fatoum @ 2019-11-20 14:15 UTC (permalink / raw)
  To: Krzysztof Kozlowski, linux-kernel
  Cc: Dong Aisheng, Fabio Estevam, Linus Walleij, Stefan Agner,
	Bjorn Andersson, linux-gpio, Andy Gross, Pengutronix Kernel Team,
	linux-arm-msm, Shawn Guo

Hello Krzysztof,

On 11/20/19 2:40 PM, Krzysztof Kozlowski wrote:
> Adjust indentation from spaces to tab (+optional two spaces) as in
> coding style with command like:
> 	$ sed -e 's/^        /\t/' -i */Kconfig

>  config PINCTRL_ARTPEC6
> -        bool "Axis ARTPEC-6 pin controller driver"
> +	bool "Axis ARTPEC-6 pin controller driver"

Here you replace spaces for tabs before the prompt type.

>  config PINCTRL_SM8150
>         tristate "Qualcomm Technologies Inc SM8150 pin controller driver"

Here you leave the spaces before intact.

Intentional?

Cheers
Ahmad


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] pinctrl: Fix Kconfig indentation
  2019-11-20 14:15 ` Ahmad Fatoum
@ 2019-11-21  1:27   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2019-11-21  1:27 UTC (permalink / raw)
  To: Ahmad Fatoum
  Cc: linux-kernel, Dong Aisheng, Fabio Estevam, Linus Walleij,
	Stefan Agner, Bjorn Andersson, linux-gpio, Andy Gross,
	Pengutronix Kernel Team, linux-arm-msm, Shawn Guo

On Wed, 20 Nov 2019 at 22:15, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> Hello Krzysztof,
>
> On 11/20/19 2:40 PM, Krzysztof Kozlowski wrote:
> > Adjust indentation from spaces to tab (+optional two spaces) as in
> > coding style with command like:
> >       $ sed -e 's/^        /\t/' -i */Kconfig
>
> >  config PINCTRL_ARTPEC6
> > -        bool "Axis ARTPEC-6 pin controller driver"
> > +     bool "Axis ARTPEC-6 pin controller driver"
>
> Here you replace spaces for tabs before the prompt type.
>
> >  config PINCTRL_SM8150
> >         tristate "Qualcomm Technologies Inc SM8150 pin controller driver"
>
> Here you leave the spaces before intact.
>
> Intentional?

No, not intentional. Thanks for pointing it out. I made the sed
patterns precise - 8 spaces -> tab, and there you have 7 spaces
(ugh!). I'll send a follow up.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-21  1:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-20 13:40 [PATCH] pinctrl: Fix Kconfig indentation Krzysztof Kozlowski
2019-11-20 14:15 ` Ahmad Fatoum
2019-11-21  1:27   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).