Commit 51128e8a authored by Linus Walleij's avatar Linus Walleij

pinctrl: sh-pfc: rename confusing pinmux ops variable

The vtable named *pinmux_ops in the affected files are not really
about pin multiplexing, but a struct related to some PFC-specific
operations, inclusing pin config (bias setting). Rename the variable
so as to avoid confusions.
Acked-by: default avatarLaurent Pinchart <Laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent edad3b2a
...@@ -2717,14 +2717,14 @@ static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, ...@@ -2717,14 +2717,14 @@ static void r8a73a4_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
iowrite8(value, addr); iowrite8(value, addr);
} }
static const struct sh_pfc_soc_operations r8a73a4_pinmux_ops = { static const struct sh_pfc_soc_operations r8a73a4_pfc_ops = {
.get_bias = r8a73a4_pinmux_get_bias, .get_bias = r8a73a4_pinmux_get_bias,
.set_bias = r8a73a4_pinmux_set_bias, .set_bias = r8a73a4_pinmux_set_bias,
}; };
const struct sh_pfc_soc_info r8a73a4_pinmux_info = { const struct sh_pfc_soc_info r8a73a4_pinmux_info = {
.name = "r8a73a4_pfc", .name = "r8a73a4_pfc",
.ops = &r8a73a4_pinmux_ops, .ops = &r8a73a4_pfc_ops,
.input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
.output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
......
...@@ -3752,14 +3752,14 @@ static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, ...@@ -3752,14 +3752,14 @@ static void r8a7740_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
iowrite8(value, addr); iowrite8(value, addr);
} }
static const struct sh_pfc_soc_operations r8a7740_pinmux_ops = { static const struct sh_pfc_soc_operations r8a7740_pfc_ops = {
.get_bias = r8a7740_pinmux_get_bias, .get_bias = r8a7740_pinmux_get_bias,
.set_bias = r8a7740_pinmux_set_bias, .set_bias = r8a7740_pinmux_set_bias,
}; };
const struct sh_pfc_soc_info r8a7740_pinmux_info = { const struct sh_pfc_soc_info r8a7740_pinmux_info = {
.name = "r8a7740_pfc", .name = "r8a7740_pfc",
.ops = &r8a7740_pinmux_ops, .ops = &r8a7740_pfc_ops,
.input = { PINMUX_INPUT_BEGIN, .input = { PINMUX_INPUT_BEGIN,
PINMUX_INPUT_END }, PINMUX_INPUT_END },
......
...@@ -2614,14 +2614,14 @@ static void sh7372_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin, ...@@ -2614,14 +2614,14 @@ static void sh7372_pinmux_set_bias(struct sh_pfc *pfc, unsigned int pin,
iowrite8(value, addr); iowrite8(value, addr);
} }
static const struct sh_pfc_soc_operations sh7372_pinmux_ops = { static const struct sh_pfc_soc_operations sh7372_pfc_ops = {
.get_bias = sh7372_pinmux_get_bias, .get_bias = sh7372_pinmux_get_bias,
.set_bias = sh7372_pinmux_set_bias, .set_bias = sh7372_pinmux_set_bias,
}; };
const struct sh_pfc_soc_info sh7372_pinmux_info = { const struct sh_pfc_soc_info sh7372_pinmux_info = {
.name = "sh7372_pfc", .name = "sh7372_pfc",
.ops = &sh7372_pinmux_ops, .ops = &sh7372_pfc_ops,
.input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
.output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
......
...@@ -3856,7 +3856,7 @@ static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc) ...@@ -3856,7 +3856,7 @@ static int sh73a0_pinmux_soc_init(struct sh_pfc *pfc)
return 0; return 0;
} }
static const struct sh_pfc_soc_operations sh73a0_pinmux_ops = { static const struct sh_pfc_soc_operations sh73a0_pfc_ops = {
.init = sh73a0_pinmux_soc_init, .init = sh73a0_pinmux_soc_init,
.get_bias = sh73a0_pinmux_get_bias, .get_bias = sh73a0_pinmux_get_bias,
.set_bias = sh73a0_pinmux_set_bias, .set_bias = sh73a0_pinmux_set_bias,
...@@ -3864,7 +3864,7 @@ static const struct sh_pfc_soc_operations sh73a0_pinmux_ops = { ...@@ -3864,7 +3864,7 @@ static const struct sh_pfc_soc_operations sh73a0_pinmux_ops = {
const struct sh_pfc_soc_info sh73a0_pinmux_info = { const struct sh_pfc_soc_info sh73a0_pinmux_info = {
.name = "sh73a0_pfc", .name = "sh73a0_pfc",
.ops = &sh73a0_pinmux_ops, .ops = &sh73a0_pfc_ops,
.input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END }, .input = { PINMUX_INPUT_BEGIN, PINMUX_INPUT_END },
.output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END }, .output = { PINMUX_OUTPUT_BEGIN, PINMUX_OUTPUT_END },
......
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