Commit be41cf58 authored by Laurent Navet's avatar Laurent Navet Committed by Linus Walleij

gpio: gpio-sch.c: fix checkpatch error

Fix :
 gpio/gpio-sch.c:206: ERROR: switch and case should be at the same indent

Also remove blank lines
Signed-off-by: default avatarLaurent Navet <laurent.navet@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent e37f4af7
...@@ -221,45 +221,41 @@ static int sch_gpio_probe(struct platform_device *pdev) ...@@ -221,45 +221,41 @@ static int sch_gpio_probe(struct platform_device *pdev)
gpio_ba = res->start; gpio_ba = res->start;
switch (id) { switch (id) {
case PCI_DEVICE_ID_INTEL_SCH_LPC: case PCI_DEVICE_ID_INTEL_SCH_LPC:
sch_gpio_core.base = 0; sch_gpio_core.base = 0;
sch_gpio_core.ngpio = 10; sch_gpio_core.ngpio = 10;
sch_gpio_resume.base = 10;
sch_gpio_resume.base = 10; sch_gpio_resume.ngpio = 4;
sch_gpio_resume.ngpio = 4; /*
* GPIO[6:0] enabled by default
/* * GPIO7 is configured by the CMC as SLPIOVR
* GPIO[6:0] enabled by default * Enable GPIO[9:8] core powered gpios explicitly
* GPIO7 is configured by the CMC as SLPIOVR */
* Enable GPIO[9:8] core powered gpios explicitly outb(0x3, gpio_ba + CGEN + 1);
*/ /*
outb(0x3, gpio_ba + CGEN + 1); * SUS_GPIO[2:0] enabled by default
/* * Enable SUS_GPIO3 resume powered gpio explicitly
* SUS_GPIO[2:0] enabled by default */
* Enable SUS_GPIO3 resume powered gpio explicitly outb(0x8, gpio_ba + RGEN);
*/ break;
outb(0x8, gpio_ba + RGEN);
break; case PCI_DEVICE_ID_INTEL_ITC_LPC:
sch_gpio_core.base = 0;
case PCI_DEVICE_ID_INTEL_ITC_LPC: sch_gpio_core.ngpio = 5;
sch_gpio_core.base = 0; sch_gpio_resume.base = 5;
sch_gpio_core.ngpio = 5; sch_gpio_resume.ngpio = 9;
break;
sch_gpio_resume.base = 5;
sch_gpio_resume.ngpio = 9; case PCI_DEVICE_ID_INTEL_CENTERTON_ILB:
break; sch_gpio_core.base = 0;
sch_gpio_core.ngpio = 21;
case PCI_DEVICE_ID_INTEL_CENTERTON_ILB: sch_gpio_resume.base = 21;
sch_gpio_core.base = 0; sch_gpio_resume.ngpio = 9;
sch_gpio_core.ngpio = 21; break;
sch_gpio_resume.base = 21; default:
sch_gpio_resume.ngpio = 9; err = -ENODEV;
break; goto err_sch_gpio_core;
default:
err = -ENODEV;
goto err_sch_gpio_core;
} }
sch_gpio_core.dev = &pdev->dev; sch_gpio_core.dev = &pdev->dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment