Skip to content

Commit 0d311d8

Browse files
Sach1nAgarwallinusw
authored andcommitted
gpio: aspeed-sgpio: fixed typos
This fixes some various typos. Signed-off-by: Sachin Agarwal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent d5331ec commit 0d311d8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

drivers/gpio/gpio-aspeed-sgpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static int aspeed_sgpio_setup_irqs(struct aspeed_sgpio *gpio,
391391

392392
gpio->irq = rc;
393393

394-
/* Disable IRQ and clear Interrupt status registers for all SPGIO Pins. */
394+
/* Disable IRQ and clear Interrupt status registers for all SGPIO Pins. */
395395
for (i = 0; i < ARRAY_SIZE(aspeed_sgpio_banks); i++) {
396396
bank = &aspeed_sgpio_banks[i];
397397
/* disable irq enable bits */

drivers/gpio/gpio-aspeed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset,
978978
}
979979

980980
/**
981-
* aspeed_gpio_copro_set_ops - Sets the callbacks used for handhsaking with
981+
* aspeed_gpio_copro_set_ops - Sets the callbacks used for handshaking with
982982
* the coprocessor for shared GPIO banks
983983
* @ops: The callbacks
984984
* @data: Pointer passed back to the callbacks

drivers/gpio/gpio-creg-snps.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ static int creg_gpio_validate_pg(struct device *dev, struct creg_gpio *hcg,
6464
if (layout->bit_per_gpio[i] < 1 || layout->bit_per_gpio[i] > 8)
6565
return -EINVAL;
6666

67-
/* Check that on valiue fits it's placeholder */
67+
/* Check that on value fits its placeholder */
6868
if (GENMASK(31, layout->bit_per_gpio[i]) & layout->on[i])
6969
return -EINVAL;
7070

71-
/* Check that off valiue fits it's placeholder */
71+
/* Check that off value fits its placeholder */
7272
if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i])
7373
return -EINVAL;
7474

0 commit comments

Comments
 (0)