gpio: aspeed-sgpio: fixed typos
authorSachin agarwal <asachin591@gmail.com>
Sat, 18 Jan 2020 10:53:19 +0000 (16:23 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jan 2020 15:16:05 +0000 (16:16 +0100)
This fixes some various typos.

Signed-off-by: Sachin Agarwal <asachin591@gmail.com>
Link: https://lore.kernel.org/r/20200118105319.68637-1-sachinagarwal@sachins-MacBook-2.local
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-aspeed-sgpio.c
drivers/gpio/gpio-aspeed.c
drivers/gpio/gpio-creg-snps.c

index 8319812593e31295c40638e3667cfa5a1fda2234..d16645c1d8d9de447d148d0d7b2851fac7583ae4 100644 (file)
@@ -391,7 +391,7 @@ static int aspeed_sgpio_setup_irqs(struct aspeed_sgpio *gpio,
 
        gpio->irq = rc;
 
-       /* Disable IRQ and clear Interrupt status registers for all SPGIO Pins. */
+       /* Disable IRQ and clear Interrupt status registers for all SGPIO Pins. */
        for (i = 0; i < ARRAY_SIZE(aspeed_sgpio_banks); i++) {
                bank =  &aspeed_sgpio_banks[i];
                /* disable irq enable bits */
index f1037b61f7634c5ade7a24bb6d9e4ed37bea3dc4..879db23d84549313bde94846e29450d9bf180432 100644 (file)
@@ -978,7 +978,7 @@ static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
 }
 
 /**
- * aspeed_gpio_copro_set_ops - Sets the callbacks used for handhsaking with
+ * aspeed_gpio_copro_set_ops - Sets the callbacks used for handshaking with
  *                             the coprocessor for shared GPIO banks
  * @ops: The callbacks
  * @data: Pointer passed back to the callbacks
index ff19a8ad5663a2bd3dd76b9a10a4dcb0aa54cd33..1d0827e7970353099e9eff2a8de6223f9e60df89 100644 (file)
@@ -64,11 +64,11 @@ static int creg_gpio_validate_pg(struct device *dev, struct creg_gpio *hcg,
        if (layout->bit_per_gpio[i] < 1 || layout->bit_per_gpio[i] > 8)
                return -EINVAL;
 
-       /* Check that on valiue fits it's placeholder */
+       /* Check that on value fits its placeholder */
        if (GENMASK(31, layout->bit_per_gpio[i]) & layout->on[i])
                return -EINVAL;
 
-       /* Check that off valiue fits it's placeholder */
+       /* Check that off value fits its placeholder */
        if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i])
                return -EINVAL;