gpio: aspeed-sgpio: fixed typos

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>
This commit is contained in:
Sachin agarwal 2020-01-18 16:23:19 +05:30 committed by Linus Walleij
parent d5331ec2cc
commit 0d311d8b93
3 changed files with 4 additions and 4 deletions

View File

@ -391,7 +391,7 @@ static int aspeed_sgpio_setup_irqs(struct aspeed_sgpio *gpio,
gpio->irq = rc; 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++) { for (i = 0; i < ARRAY_SIZE(aspeed_sgpio_banks); i++) {
bank = &aspeed_sgpio_banks[i]; bank = &aspeed_sgpio_banks[i];
/* disable irq enable bits */ /* disable irq enable bits */

View 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 * the coprocessor for shared GPIO banks
* @ops: The callbacks * @ops: The callbacks
* @data: Pointer passed back to the callbacks * @data: Pointer passed back to the callbacks

View 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) if (layout->bit_per_gpio[i] < 1 || layout->bit_per_gpio[i] > 8)
return -EINVAL; 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]) if (GENMASK(31, layout->bit_per_gpio[i]) & layout->on[i])
return -EINVAL; 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]) if (GENMASK(31, layout->bit_per_gpio[i]) & layout->off[i])
return -EINVAL; return -EINVAL;