projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2800cd
)
pinctrl: qcom: ssbi-gpio: constify copied structure
author
Julia Lawall
<Julia.Lawall@inria.fr>
Wed, 1 Jan 2020 07:43:32 +0000
(08:43 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 7 Jan 2020 12:55:55 +0000
(13:55 +0100)
The pm8xxx_pinctrl_desc structure is only copied into another
structure, so make it const.
The opportunity for this change was found using Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link:
https://lore.kernel.org/r/1577864614-5543-15-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
b/drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
index dca86886b1f99c7bfabde96ea76331f78539edad..c7912135bbfb87e0c5ffdd2f712e82e536825fcc 100644
(file)
--- a/
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
+++ b/
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c
@@
-439,7
+439,7
@@
static const struct pinconf_ops pm8xxx_pinconf_ops = {
.pin_config_group_set = pm8xxx_pin_config_set,
};
-static struct pinctrl_desc pm8xxx_pinctrl_desc = {
+static
const
struct pinctrl_desc pm8xxx_pinctrl_desc = {
.name = "pm8xxx_gpio",
.pctlops = &pm8xxx_pinctrl_ops,
.pmxops = &pm8xxx_pinmux_ops,