summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorRalph Sennhauser <ralph.sennhauser@gmail.com>2017-03-16 02:33:56 -0400
committerLinus Walleij <linus.walleij@linaro.org>2017-03-16 16:52:13 -0400
commit7077f4cc1efc998dbaf9b516c7acf8f1397ccf22 (patch)
tree03a2c7f3b3f75e721c66decfce8ad28cbc000bfe /drivers/gpio
parent6798d7271cb44ba8354356a389047d84058a7828 (diff)
gpio: mvebu: checkpatch: block comment fixes
Fix issues in block comments reported by checkpatch. Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-mvebu.c24
1 files changed, 16 insertions, 8 deletions
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index a649556ac3ca..a2351f34c8b2 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -62,9 +62,11 @@
62#define GPIO_EDGE_MASK_MV78200_OFF(cpu) ((cpu) ? 0x30 : 0x18) 62#define GPIO_EDGE_MASK_MV78200_OFF(cpu) ((cpu) ? 0x30 : 0x18)
63#define GPIO_LEVEL_MASK_MV78200_OFF(cpu) ((cpu) ? 0x34 : 0x1C) 63#define GPIO_LEVEL_MASK_MV78200_OFF(cpu) ((cpu) ? 0x34 : 0x1C)
64 64
65/* The Armada XP has per-CPU registers for interrupt cause, interrupt 65/*
66 * The Armada XP has per-CPU registers for interrupt cause, interrupt
66 * mask and interrupt level mask. Those are relative to the 67 * mask and interrupt level mask. Those are relative to the
67 * percpu_membase. */ 68 * percpu_membase.
69 */
68#define GPIO_EDGE_CAUSE_ARMADAXP_OFF(cpu) ((cpu) * 0x4) 70#define GPIO_EDGE_CAUSE_ARMADAXP_OFF(cpu) ((cpu) * 0x4)
69#define GPIO_EDGE_MASK_ARMADAXP_OFF(cpu) (0x10 + (cpu) * 0x4) 71#define GPIO_EDGE_MASK_ARMADAXP_OFF(cpu) (0x10 + (cpu) * 0x4)
70#define GPIO_LEVEL_MASK_ARMADAXP_OFF(cpu) (0x20 + (cpu) * 0x4) 72#define GPIO_LEVEL_MASK_ARMADAXP_OFF(cpu) (0x20 + (cpu) * 0x4)
@@ -239,8 +241,10 @@ static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned pin)
239 int ret; 241 int ret;
240 u32 u; 242 u32 u;
241 243
242 /* Check with the pinctrl driver whether this pin is usable as 244 /*
243 * an input GPIO */ 245 * Check with the pinctrl driver whether this pin is usable as
246 * an input GPIO
247 */
244 ret = pinctrl_gpio_direction_input(chip->base + pin); 248 ret = pinctrl_gpio_direction_input(chip->base + pin);
245 if (ret) 249 if (ret)
246 return ret; 250 return ret;
@@ -262,8 +266,10 @@ static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned pin,
262 int ret; 266 int ret;
263 u32 u; 267 u32 u;
264 268
265 /* Check with the pinctrl driver whether this pin is usable as 269 /*
266 * an output GPIO */ 270 * Check with the pinctrl driver whether this pin is usable as
271 * an output GPIO
272 */
267 ret = pinctrl_gpio_direction_output(chip->base + pin); 273 ret = pinctrl_gpio_direction_output(chip->base + pin);
268 if (ret) 274 if (ret)
269 return ret; 275 return ret;
@@ -712,8 +718,10 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
712 if (IS_ERR(mvchip->membase)) 718 if (IS_ERR(mvchip->membase))
713 return PTR_ERR(mvchip->membase); 719 return PTR_ERR(mvchip->membase);
714 720
715 /* The Armada XP has a second range of registers for the 721 /*
716 * per-CPU registers */ 722 * The Armada XP has a second range of registers for the
723 * per-CPU registers
724 */
717 if (soc_variant == MVEBU_GPIO_SOC_VARIANT_ARMADAXP) { 725 if (soc_variant == MVEBU_GPIO_SOC_VARIANT_ARMADAXP) {
718 res = platform_get_resource(pdev, IORESOURCE_MEM, 1); 726 res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
719 mvchip->percpu_membase = devm_ioremap_resource(&pdev->dev, 727 mvchip->percpu_membase = devm_ioremap_resource(&pdev->dev,