Commit b589f241 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

pinctrl: renesas: Singular/plural grammar fixes

Fix a few singular vs. plural grammar issues in comments.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201028151637.1734130-3-geert+renesas@glider.be
parent b5bd0bec
...@@ -328,7 +328,7 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc) ...@@ -328,7 +328,7 @@ int sh_pfc_register_gpiochip(struct sh_pfc *pfc)
if (pfc->info->data_regs == NULL) if (pfc->info->data_regs == NULL)
return 0; return 0;
/* Find the memory window that contain the GPIO registers. Boards that /* Find the memory window that contains the GPIO registers. Boards that
* register a separate GPIO device will not supply a memory resource * register a separate GPIO device will not supply a memory resource
* that covers the data registers. In that case don't try to handle * that covers the data registers. In that case don't try to handle
* GPIOs. * GPIOs.
......
...@@ -399,7 +399,7 @@ static int sh_pfc_gpio_request_enable(struct pinctrl_dev *pctldev, ...@@ -399,7 +399,7 @@ static int sh_pfc_gpio_request_enable(struct pinctrl_dev *pctldev,
spin_lock_irqsave(&pfc->lock, flags); spin_lock_irqsave(&pfc->lock, flags);
if (!pfc->gpio) { if (!pfc->gpio) {
/* If GPIOs are handled externally the pin mux type need to be /* If GPIOs are handled externally the pin mux type needs to be
* set to GPIO here. * set to GPIO here.
*/ */
const struct sh_pfc_pin *pin = &pfc->info->pins[idx]; const struct sh_pfc_pin *pin = &pfc->info->pins[idx];
...@@ -450,8 +450,8 @@ static int sh_pfc_gpio_set_direction(struct pinctrl_dev *pctldev, ...@@ -450,8 +450,8 @@ static int sh_pfc_gpio_set_direction(struct pinctrl_dev *pctldev,
unsigned int dir; unsigned int dir;
int ret; int ret;
/* Check if the requested direction is supported by the pin. Not all SoC /* Check if the requested direction is supported by the pin. Not all
* provide pin config data, so perform the check conditionally. * SoCs provide pin config data, so perform the check conditionally.
*/ */
if (pin->configs) { if (pin->configs) {
dir = input ? SH_PFC_PIN_CFG_INPUT : SH_PFC_PIN_CFG_OUTPUT; dir = input ? SH_PFC_PIN_CFG_INPUT : SH_PFC_PIN_CFG_OUTPUT;
......
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