summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-creg-snps.c
diff options
context:
space:
mode:
authorSachin agarwal <asachin591@gmail.com>2020-01-18 16:23:19 +0530
committerLinus Walleij <linus.walleij@linaro.org>2020-01-23 16:16:05 +0100
commit0d311d8b93cfc8ab36aa11f09e15a5fe87147c02 (patch)
tree69bdadca68aa0ff33f46caffa3eb335e4a7210be /drivers/gpio/gpio-creg-snps.c
parentd5331ec2cc6e8b79b8b0027091d1ebb395e833b5 (diff)
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>
Diffstat (limited to 'drivers/gpio/gpio-creg-snps.c')
-rw-r--r--drivers/gpio/gpio-creg-snps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-creg-snps.c b/drivers/gpio/gpio-creg-snps.c
index ff19a8ad5663..1d0827e79703 100644
--- a/drivers/gpio/gpio-creg-snps.c
+++ b/drivers/gpio/gpio-creg-snps.c
@@ -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;