Linux-IIO Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH v2] iio: Fix Kconfig indentation
@ 2019-11-21  3:19 Krzysztof Kozlowski
  2019-11-23 14:45 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2019-11-21  3:19 UTC (permalink / raw)
  To: linux-kernel
  Cc: Krzysztof Kozlowski, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler, linux-iio

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>

---

Changes since v1:
1. Fix also 7-space and tab+1 space indentation issues.
---
 drivers/iio/gyro/Kconfig | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
index 95e6f96d4529..7de77419b4a1 100644
--- a/drivers/iio/gyro/Kconfig
+++ b/drivers/iio/gyro/Kconfig
@@ -75,26 +75,26 @@ config BMG160_SPI
 	select REGMAP_SPI
 
 config FXAS21002C
-       tristate "NXP FXAS21002C Gyro Sensor"
-       select IIO_BUFFER
-       select IIO_TRIGGERED_BUFFER
-       select FXAS21002C_I2C if (I2C)
-       select FXAS21002C_SPI if (SPI)
-       depends on (I2C || SPI_MASTER)
-       help
-         Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
-         Sensor driver connected via I2C or SPI.
-
-         This driver can also be built as a module.  If so, the module
-         will be called fxas21002c_i2c or fxas21002c_spi.
+	tristate "NXP FXAS21002C Gyro Sensor"
+	select IIO_BUFFER
+	select IIO_TRIGGERED_BUFFER
+	select FXAS21002C_I2C if (I2C)
+	select FXAS21002C_SPI if (SPI)
+	depends on (I2C || SPI_MASTER)
+	help
+	 Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
+	 Sensor driver connected via I2C or SPI.
+
+	 This driver can also be built as a module.  If so, the module
+	 will be called fxas21002c_i2c or fxas21002c_spi.
 
 config FXAS21002C_I2C
-       tristate
-       select REGMAP_I2C
+	tristate
+	select REGMAP_I2C
 
 config FXAS21002C_SPI
-       tristate
-       select REGMAP_SPI
+	tristate
+	select REGMAP_SPI
 
 config HID_SENSOR_GYRO_3D
 	depends on HID_SENSOR_HUB
-- 
2.7.4


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

* Re: [PATCH v2] iio: Fix Kconfig indentation
  2019-11-21  3:19 [PATCH v2] iio: Fix Kconfig indentation Krzysztof Kozlowski
@ 2019-11-23 14:45 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2019-11-23 14:45 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: linux-kernel, Hartmut Knaack, Lars-Peter Clausen,
	Peter Meerwald-Stadler, linux-iio

On Thu, 21 Nov 2019 04:19:19 +0100
Krzysztof Kozlowski <krzk@kernel.org> wrote:

> 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>
This ends up with 1 space less before the help text than in the rest
of the file.  Fixed that up and applied.

thanks,

Jonathan

> 
> ---
> 
> Changes since v1:
> 1. Fix also 7-space and tab+1 space indentation issues.
> ---
>  drivers/iio/gyro/Kconfig | 32 ++++++++++++++++----------------
>  1 file changed, 16 insertions(+), 16 deletions(-)
> 
> diff --git a/drivers/iio/gyro/Kconfig b/drivers/iio/gyro/Kconfig
> index 95e6f96d4529..7de77419b4a1 100644
> --- a/drivers/iio/gyro/Kconfig
> +++ b/drivers/iio/gyro/Kconfig
> @@ -75,26 +75,26 @@ config BMG160_SPI
>  	select REGMAP_SPI
>  
>  config FXAS21002C
> -       tristate "NXP FXAS21002C Gyro Sensor"
> -       select IIO_BUFFER
> -       select IIO_TRIGGERED_BUFFER
> -       select FXAS21002C_I2C if (I2C)
> -       select FXAS21002C_SPI if (SPI)
> -       depends on (I2C || SPI_MASTER)
> -       help
> -         Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
> -         Sensor driver connected via I2C or SPI.
> -
> -         This driver can also be built as a module.  If so, the module
> -         will be called fxas21002c_i2c or fxas21002c_spi.
> +	tristate "NXP FXAS21002C Gyro Sensor"
> +	select IIO_BUFFER
> +	select IIO_TRIGGERED_BUFFER
> +	select FXAS21002C_I2C if (I2C)
> +	select FXAS21002C_SPI if (SPI)
> +	depends on (I2C || SPI_MASTER)
> +	help
> +	 Say yes here to build support for NXP FXAS21002C Tri-axis Gyro
> +	 Sensor driver connected via I2C or SPI.
> +
> +	 This driver can also be built as a module.  If so, the module
> +	 will be called fxas21002c_i2c or fxas21002c_spi.
>  
>  config FXAS21002C_I2C
> -       tristate
> -       select REGMAP_I2C
> +	tristate
> +	select REGMAP_I2C
>  
>  config FXAS21002C_SPI
> -       tristate
> -       select REGMAP_SPI
> +	tristate
> +	select REGMAP_SPI
>  
>  config HID_SENSOR_GYRO_3D
>  	depends on HID_SENSOR_HUB


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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-21  3:19 [PATCH v2] iio: Fix Kconfig indentation Krzysztof Kozlowski
2019-11-23 14:45 ` Jonathan Cameron

Linux-IIO Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-iio/0 linux-iio/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-iio linux-iio/ https://lore.kernel.org/linux-iio \
		linux-iio@vger.kernel.org
	public-inbox-index linux-iio

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-iio


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git