Commit 7bd47496 authored by Peter Rosin's avatar Peter Rosin Committed by Linus Walleij

pinctrl: sx150x: various spelling fixes and some white-space cleanup

Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarPeter Rosin <peda@axentia.se>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 4ecb65fb
...@@ -384,7 +384,7 @@ static int sx150x_gpio_oscio_set(struct sx150x_pinctrl *pctl, ...@@ -384,7 +384,7 @@ static int sx150x_gpio_oscio_set(struct sx150x_pinctrl *pctl,
} }
static void sx150x_gpio_set(struct gpio_chip *chip, unsigned int offset, static void sx150x_gpio_set(struct gpio_chip *chip, unsigned int offset,
int value) int value)
{ {
struct sx150x_pinctrl *pctl = gpiochip_get_data(chip); struct sx150x_pinctrl *pctl = gpiochip_get_data(chip);
...@@ -396,7 +396,7 @@ static void sx150x_gpio_set(struct gpio_chip *chip, unsigned int offset, ...@@ -396,7 +396,7 @@ static void sx150x_gpio_set(struct gpio_chip *chip, unsigned int offset,
} }
static int sx150x_gpio_direction_input(struct gpio_chip *chip, static int sx150x_gpio_direction_input(struct gpio_chip *chip,
unsigned int offset) unsigned int offset)
{ {
struct sx150x_pinctrl *pctl = gpiochip_get_data(chip); struct sx150x_pinctrl *pctl = gpiochip_get_data(chip);
...@@ -409,7 +409,7 @@ static int sx150x_gpio_direction_input(struct gpio_chip *chip, ...@@ -409,7 +409,7 @@ static int sx150x_gpio_direction_input(struct gpio_chip *chip,
} }
static int sx150x_gpio_direction_output(struct gpio_chip *chip, static int sx150x_gpio_direction_output(struct gpio_chip *chip,
unsigned int offset, int value) unsigned int offset, int value)
{ {
struct sx150x_pinctrl *pctl = gpiochip_get_data(chip); struct sx150x_pinctrl *pctl = gpiochip_get_data(chip);
int ret; int ret;
...@@ -880,7 +880,7 @@ static unsigned int sx150x_maybe_swizzle(struct sx150x_pinctrl *pctl, ...@@ -880,7 +880,7 @@ static unsigned int sx150x_maybe_swizzle(struct sx150x_pinctrl *pctl,
* reg + 3 [ 3 3 2 2 1 1 0 0 ] * reg + 3 [ 3 3 2 2 1 1 0 0 ]
* *
* SX1503 and SX1506 deviate from that data layout, instead storing * SX1503 and SX1506 deviate from that data layout, instead storing
* thier contents as follows: * their contents as follows:
* *
* reg [ f f e e d d c c ] * reg [ f f e e d d c c ]
* reg + 1 [ 7 7 6 6 5 5 4 4 ] * reg + 1 [ 7 7 6 6 5 5 4 4 ]
...@@ -915,9 +915,8 @@ static unsigned int sx150x_maybe_swizzle(struct sx150x_pinctrl *pctl, ...@@ -915,9 +915,8 @@ static unsigned int sx150x_maybe_swizzle(struct sx150x_pinctrl *pctl,
* *
* This way the rest of the driver code, interfacing with the chip via * This way the rest of the driver code, interfacing with the chip via
* regmap API, can work assuming that each GPIO pin is represented by * regmap API, can work assuming that each GPIO pin is represented by
* a group of bits at an offset proportioan to GPIO number within a * a group of bits at an offset proportional to GPIO number within a
* given register. * given register.
*
*/ */
static int sx150x_regmap_reg_read(void *context, unsigned int reg, static int sx150x_regmap_reg_read(void *context, unsigned int reg,
unsigned int *result) unsigned int *result)
...@@ -929,7 +928,7 @@ static int sx150x_regmap_reg_read(void *context, unsigned int reg, ...@@ -929,7 +928,7 @@ static int sx150x_regmap_reg_read(void *context, unsigned int reg,
unsigned int idx, val; unsigned int idx, val;
/* /*
* There are four potential cases coverd by this function: * There are four potential cases covered by this function:
* *
* 1) 8-pin chip, single configuration bit register * 1) 8-pin chip, single configuration bit register
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment