Commit 3cbbb91f authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Linus Walleij
Browse files

pinctrl: bcm: Constify static 'pinctrl_desc'



The local static 'struct pinctrl_desc' is not modified, so can be made
const for code safety.

Reviewed-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/20250611-pinctrl-const-desc-v2-7-b11c1d650384@linaro.org


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 25b306c4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -456,7 +456,7 @@ static const struct pinmux_ops bcm4908_pinctrl_pmxops = {
 * Controller code
 */

static struct pinctrl_desc bcm4908_pinctrl_desc = {
static const struct pinctrl_desc bcm4908_pinctrl_desc = {
	.name = "bcm4908-pinctrl",
	.pctlops = &bcm4908_pinctrl_ops,
	.pmxops = &bcm4908_pinctrl_pmxops,
+1 −1
Original line number Diff line number Diff line
@@ -192,7 +192,7 @@ static const struct pinmux_ops ns_pinctrl_pmxops = {
 * Controller code
 */

static struct pinctrl_desc ns_pinctrl_desc = {
static const struct pinctrl_desc ns_pinctrl_desc = {
	.name = "pinctrl-ns",
	.pctlops = &ns_pinctrl_ops,
	.pmxops = &ns_pinctrl_pmxops,