Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1601991

[PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes

From Ralph Sennhauser <ralph.sennhauser@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes
Date 2017-03-16 07:40 +0100
Message-ID <tlxeO-2IL-21@gated-at.bofh.it> (permalink)
References <tlxeN-2IL-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Fix issues in block comments reported by checkpatch.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
---
 drivers/gpio/gpio-mvebu.c | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
index a649556..a2351f3 100644
--- a/drivers/gpio/gpio-mvebu.c
+++ b/drivers/gpio/gpio-mvebu.c
@@ -62,9 +62,11 @@
 #define GPIO_EDGE_MASK_MV78200_OFF(cpu)	  ((cpu) ? 0x30 : 0x18)
 #define GPIO_LEVEL_MASK_MV78200_OFF(cpu)  ((cpu) ? 0x34 : 0x1C)
 
-/* The Armada XP has per-CPU registers for interrupt cause, interrupt
+/*
+ * The Armada XP has per-CPU registers for interrupt cause, interrupt
  * mask and interrupt level mask. Those are relative to the
- * percpu_membase. */
+ * percpu_membase.
+ */
 #define GPIO_EDGE_CAUSE_ARMADAXP_OFF(cpu) ((cpu) * 0x4)
 #define GPIO_EDGE_MASK_ARMADAXP_OFF(cpu)  (0x10 + (cpu) * 0x4)
 #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)
 	int ret;
 	u32 u;
 
-	/* Check with the pinctrl driver whether this pin is usable as
-	 * an input GPIO */
+	/*
+	 * Check with the pinctrl driver whether this pin is usable as
+	 * an input GPIO
+	 */
 	ret = pinctrl_gpio_direction_input(chip->base + pin);
 	if (ret)
 		return ret;
@@ -262,8 +266,10 @@ static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned pin,
 	int ret;
 	u32 u;
 
-	/* Check with the pinctrl driver whether this pin is usable as
-	 * an output GPIO */
+	/*
+	 * Check with the pinctrl driver whether this pin is usable as
+	 * an output GPIO
+	 */
 	ret = pinctrl_gpio_direction_output(chip->base + pin);
 	if (ret)
 		return ret;
@@ -712,8 +718,10 @@ static int mvebu_gpio_probe(struct platform_device *pdev)
 	if (IS_ERR(mvchip->membase))
 		return PTR_ERR(mvchip->membase);
 
-	/* The Armada XP has a second range of registers for the
-	 * per-CPU registers */
+	/*
+	 * The Armada XP has a second range of registers for the
+	 * per-CPU registers
+	 */
 	if (soc_variant == MVEBU_GPIO_SOC_VARIANT_ARMADAXP) {
 		res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
 		mvchip->percpu_membase = devm_ioremap_resource(&pdev->dev,
-- 
2.10.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/6] gpio: mvebu: prepatatory cleanup for pwm-fan support Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
  [PATCH 6/6] gpio: mvebu: let the compiler inline Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 6/6] gpio: mvebu: let the compiler inline Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
      Re: [PATCH 6/6] gpio: mvebu: let the compiler inline Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-17 10:10 +0100
  [PATCH 2/6] gpio: mvebu: start multiline block comments with blank line Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 2/6] gpio: mvebu: start multiline block comments with  blank line Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
  [PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 1/6] gpio: mvebu: checkpatch: block comment fixes Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100
  [PATCH 4/6] gpio: mvebu: checkpatch: whitespace fixes Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-16 07:40 +0100
    Re: [PATCH 4/6] gpio: mvebu: checkpatch: whitespace fixes Linus Walleij <linus.walleij@linaro.org> - 2017-03-16 16:50 +0100

csiph-web