Commit 0c683876 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Linus Walleij
Browse files

pinctrl: bcm: Constify static pinmux_ops



These are only assigned, either directly or via the bcm63xx_pinctrl_soc
struct, to the pmxops field in the pinctrl_desc struct and never
modified, so make them const to allow the compiler to put them in
read-only memory.

Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Acked-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20210605185908.39982-3-rikard.falkeborn@gmail.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d9779093
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -460,7 +460,7 @@ static const struct pinctrl_ops bcm6318_pctl_ops = {
	.get_groups_count = bcm6318_pinctrl_get_group_count,
};

static struct pinmux_ops bcm6318_pmx_ops = {
static const struct pinmux_ops bcm6318_pmx_ops = {
	.get_function_groups = bcm6318_pinctrl_get_groups,
	.get_function_name = bcm6318_pinctrl_get_func_name,
	.get_functions_count = bcm6318_pinctrl_get_func_count,
+1 −1
Original line number Diff line number Diff line
@@ -605,7 +605,7 @@ static const struct pinctrl_ops bcm63268_pctl_ops = {
	.get_groups_count = bcm63268_pinctrl_get_group_count,
};

static struct pinmux_ops bcm63268_pmx_ops = {
static const struct pinmux_ops bcm63268_pmx_ops = {
	.get_function_groups = bcm63268_pinctrl_get_groups,
	.get_function_name = bcm63268_pinctrl_get_func_name,
	.get_functions_count = bcm63268_pinctrl_get_func_count,
+1 −1
Original line number Diff line number Diff line
@@ -366,7 +366,7 @@ static const struct pinctrl_ops bcm6328_pctl_ops = {
	.get_groups_count = bcm6328_pinctrl_get_group_count,
};

static struct pinmux_ops bcm6328_pmx_ops = {
static const struct pinmux_ops bcm6328_pmx_ops = {
	.get_function_groups = bcm6328_pinctrl_get_groups,
	.get_function_name = bcm6328_pinctrl_get_func_name,
	.get_functions_count = bcm6328_pinctrl_get_func_count,
+1 −1
Original line number Diff line number Diff line
@@ -311,7 +311,7 @@ static const struct pinctrl_ops bcm6358_pctl_ops = {
	.get_groups_count = bcm6358_pinctrl_get_group_count,
};

static struct pinmux_ops bcm6358_pmx_ops = {
static const struct pinmux_ops bcm6358_pmx_ops = {
	.get_function_groups = bcm6358_pinctrl_get_groups,
	.get_function_name = bcm6358_pinctrl_get_func_name,
	.get_functions_count = bcm6358_pinctrl_get_func_count,
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ static const struct pinctrl_ops bcm6362_pctl_ops = {
	.get_groups_count = bcm6362_pinctrl_get_group_count,
};

static struct pinmux_ops bcm6362_pmx_ops = {
static const struct pinmux_ops bcm6362_pmx_ops = {
	.get_function_groups = bcm6362_pinctrl_get_groups,
	.get_function_name = bcm6362_pinctrl_get_func_name,
	.get_functions_count = bcm6362_pinctrl_get_func_count,
Loading