From: Laurent Navet <laurent.navet@gmail.com>
To: grant.likely@secretlab.ca, linus.walleij@linaro.org
Cc: santosh.shilimkar@ti.com, khilman@ti.com,
linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org,
Laurent Navet <laurent.navet@gmail.com>
Subject: [PATCH 06/10] gpio: gpio-sch.c: fix checkpatch error
Date: Wed, 20 Mar 2013 13:16:00 +0100 [thread overview]
Message-ID: <1363781764-17330-7-git-send-email-laurent.navet@gmail.com> (raw)
In-Reply-To: <1363781764-17330-1-git-send-email-laurent.navet@gmail.com>
Fix :
gpio/gpio-sch.c:206: ERROR: switch and case should be at the same indent
Also remove blank lines
Signed-off-by: Laurent Navet <laurent.navet@gmail.com>
---
drivers/gpio/gpio-sch.c | 74 ++++++++++++++++++++++-------------------------
1 file changed, 35 insertions(+), 39 deletions(-)
diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c
index edae963..cb60081 100644
--- a/drivers/gpio/gpio-sch.c
+++ b/drivers/gpio/gpio-sch.c
@@ -204,45 +204,41 @@ static int sch_gpio_probe(struct platform_device *pdev)
gpio_ba = res->start;
switch (id) {
- case PCI_DEVICE_ID_INTEL_SCH_LPC:
- sch_gpio_core.base = 0;
- sch_gpio_core.ngpio = 10;
-
- sch_gpio_resume.base = 10;
- sch_gpio_resume.ngpio = 4;
-
- /*
- * GPIO[6:0] enabled by default
- * GPIO7 is configured by the CMC as SLPIOVR
- * Enable GPIO[9:8] core powered gpios explicitly
- */
- outb(0x3, gpio_ba + CGEN + 1);
- /*
- * SUS_GPIO[2:0] enabled by default
- * Enable SUS_GPIO3 resume powered gpio explicitly
- */
- outb(0x8, gpio_ba + RGEN);
- break;
-
- case PCI_DEVICE_ID_INTEL_ITC_LPC:
- sch_gpio_core.base = 0;
- sch_gpio_core.ngpio = 5;
-
- sch_gpio_resume.base = 5;
- sch_gpio_resume.ngpio = 9;
- break;
-
- case PCI_DEVICE_ID_INTEL_CENTERTON_ILB:
- sch_gpio_core.base = 0;
- sch_gpio_core.ngpio = 21;
-
- sch_gpio_resume.base = 21;
- sch_gpio_resume.ngpio = 9;
- break;
-
- default:
- err = -ENODEV;
- goto err_sch_gpio_core;
+ case PCI_DEVICE_ID_INTEL_SCH_LPC:
+ sch_gpio_core.base = 0;
+ sch_gpio_core.ngpio = 10;
+ sch_gpio_resume.base = 10;
+ sch_gpio_resume.ngpio = 4;
+ /*
+ * GPIO[6:0] enabled by default
+ * GPIO7 is configured by the CMC as SLPIOVR
+ * Enable GPIO[9:8] core powered gpios explicitly
+ */
+ outb(0x3, gpio_ba + CGEN + 1);
+ /*
+ * SUS_GPIO[2:0] enabled by default
+ * Enable SUS_GPIO3 resume powered gpio explicitly
+ */
+ outb(0x8, gpio_ba + RGEN);
+ break;
+
+ case PCI_DEVICE_ID_INTEL_ITC_LPC:
+ sch_gpio_core.base = 0;
+ sch_gpio_core.ngpio = 5;
+ sch_gpio_resume.base = 5;
+ sch_gpio_resume.ngpio = 9;
+ break;
+
+ case PCI_DEVICE_ID_INTEL_CENTERTON_ILB:
+ sch_gpio_core.base = 0;
+ sch_gpio_core.ngpio = 21;
+ sch_gpio_resume.base = 21;
+ sch_gpio_resume.ngpio = 9;
+ break;
+
+ default:
+ err = -ENODEV;
+ goto err_sch_gpio_core;
}
sch_gpio_core.dev = &pdev->dev;
--
1.7.10.4
next prev parent reply other threads:[~2013-03-20 12:10 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-20 12:15 GPIO - Fix checkpatch errors Laurent Navet
2013-03-20 12:15 ` [PATCH 01/10] gpio: gpiolib-of.c: fix checkpatch error Laurent Navet
2013-03-27 12:36 ` Linus Walleij
2013-03-20 12:15 ` [PATCH 02/10] gpio: gpio-mvebu.c: fix checkpatch errors Laurent Navet
2013-03-27 12:39 ` Linus Walleij
2013-03-20 12:15 ` [PATCH 03/10] gpio: gpio-omap.c: fix checkpatch error Laurent Navet
2013-03-20 12:24 ` Santosh Shilimkar
2013-03-20 12:33 ` Santosh Shilimkar
2013-03-27 12:41 ` Linus Walleij
2013-03-20 12:15 ` [PATCH 04/10] gpio: gpio-pca953x.c: " Laurent Navet
2013-03-27 12:42 ` Linus Walleij
2013-03-20 12:15 ` [PATCH 05/10] gpio: gpio-pxa.c: fix checkpatch errors Laurent Navet
2013-03-27 12:43 ` Linus Walleij
2013-03-20 12:16 ` Laurent Navet [this message]
2013-03-27 12:44 ` [PATCH 06/10] gpio: gpio-sch.c: fix checkpatch error Linus Walleij
2013-03-20 12:16 ` [PATCH 07/10] gpio: gpio-stp-xway.c: " Laurent Navet
2013-03-27 12:45 ` Linus Walleij
2013-03-20 12:16 ` [PATCH 08/10] gpio: gpio-tc3589x.c: fix checkpatch errors Laurent Navet
2013-03-27 12:45 ` Linus Walleij
2013-03-20 12:16 ` [PATCH 09/10] gpio: gpio-timberdale.c: fix checkpatch error Laurent Navet
2013-03-27 12:46 ` Linus Walleij
2013-03-20 12:16 ` [PATCH 10/10] gpio: gpio-tps65910.c: " Laurent Navet
2013-03-27 12:47 ` 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=1363781764-17330-7-git-send-email-laurent.navet@gmail.com \
--to=laurent.navet@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=khilman@ti.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=santosh.shilimkar@ti.com \
/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