Skip to content

Commit

Permalink
gpio: zynq: Fix empty lines in driver
Browse files Browse the repository at this point in the history
Remove one additional line and add two new. All are reported by checkpatch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Michal Simek authored and Linus Walleij committed Aug 14, 2017
1 parent 6ae5104 commit eb73d6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/gpio/gpio-zynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#define ZYNQ_GPIO_BANK5_PIN_MAX(str) (ZYNQ_GPIO_BANK5_PIN_MIN(str) + \
ZYNQ##str##_GPIO_BANK5_NGPIO - 1)


/* Register offsets for the GPIO device */
/* LSW Mask & Data -WO */
#define ZYNQ_GPIO_DATA_LSW_OFFSET(BANK) (0x000 + (8 * BANK))
Expand Down Expand Up @@ -112,6 +111,7 @@ struct gpio_regs {
u32 int_polarity[ZYNQMP_GPIO_MAX_BANK];
u32 int_any[ZYNQMP_GPIO_MAX_BANK];
};

/**
* struct zynq_gpio - gpio device private data structure
* @chip: instance of the gpio_chip
Expand Down Expand Up @@ -661,6 +661,7 @@ static void zynq_gpio_restore_context(struct zynq_gpio *gpio)
ZYNQ_GPIO_INTANY_OFFSET(bank_num));
}
}

static int __maybe_unused zynq_gpio_suspend(struct device *dev)
{
struct platform_device *pdev = to_platform_device(dev);
Expand Down

0 comments on commit eb73d6e

Please sign in to comment.