mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] gpio: Use proper indentation
Date: Tue,  3 Sep 2013 12:39:28 +0200	[thread overview]
Message-ID: <1378204768-18013-2-git-send-email-treding@nvidia.com> (raw)
In-Reply-To: <1378204768-18013-1-git-send-email-treding@nvidia.com>

Indentation should be done using tabs, not a combination of tabs and
spaces.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Linus,

Feel free to squash this into the commit that introduced these:

	fc9bbfb: gpio: improve error path in gpiolib

Thierry

 drivers/gpio/gpiolib.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 9f8a134..b762718 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -1636,8 +1636,8 @@ static int gpiod_direction_input(struct gpio_desc *desc)
 
 	chip = desc->chip;
 	if (!chip->get || !chip->direction_input) {
-	  pr_warn("%s: missing get() or direction_input() operations\n",
-		  __func__);
+		pr_warn("%s: missing get() or direction_input() operations\n",
+			__func__);
 		return -EIO;
 	}
 
@@ -1709,8 +1709,8 @@ static int gpiod_direction_output(struct gpio_desc *desc, int value)
 
 	chip = desc->chip;
 	if (!chip->set || !chip->direction_output) {
-	  pr_warn("%s: missing set() or direction_output() operations\n",
-		  __func__);
+		pr_warn("%s: missing set() or direction_output() operations\n",
+			__func__);
 		return -EIO;
 	}
 
@@ -1779,8 +1779,8 @@ static int gpiod_set_debounce(struct gpio_desc *desc, unsigned debounce)
 
 	chip = desc->chip;
 	if (!chip->set || !chip->set_debounce) {
-	  pr_warn("%s: missing set() or set_debounce() operations\n",
-		  __func__);
+		pr_warn("%s: missing set() or set_debounce() operations\n",
+			__func__);
 		return -EIO;
 	}
 
-- 
1.8.4


  reply	other threads:[~2013-09-03 10:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-03 10:39 [PATCH 1/2] gpio: Fix crash in gpiod_set_debounce() Thierry Reding
2013-09-03 10:39 ` Thierry Reding [this message]
2013-09-03 12:11   ` [PATCH 2/2] gpio: Use proper indentation Linus Walleij
2013-09-03 12:23     ` Thierry Reding
2013-09-03 12:10 ` [PATCH 1/2] gpio: Fix crash in gpiod_set_debounce() Linus Walleij
2013-09-03 15:34   ` Kevin Hilman
2013-09-03 20:25 ` Stephen Warren
2013-09-06  8:55   ` Linus Walleij

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1378204768-18013-2-git-send-email-treding@nvidia.com \
    --to=thierry.reding@gmail.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome