]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
pinctrl: armada-38x: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 8 May 2026 12:21:56 +0000 (14:21 +0200)
committerStefan Roese <stefan.roese@mailbox.org>
Wed, 10 Jun 2026 09:23:26 +0000 (11:23 +0200)
Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Stefan Roese <stefan.roese@mailbox.org>
drivers/pinctrl/mvebu/pinctrl-armada-38x.c

index 78184d2860a85dca0123dbe0e42bbae353e57eb9..c18afe958dcf007c39c49be98404c95788ba0be2 100644 (file)
@@ -550,7 +550,7 @@ static int armada_38x_pinctrl_probe(struct udevice *dev)
        return 0;
 }
 
-struct pinctrl_ops armada_37xx_pinctrl_ops = {
+static const struct pinctrl_ops armada_37xx_pinctrl_ops = {
        .get_pins_count = armada_38x_pinctrl_get_pins_count,
        .get_pin_name = armada_38x_pinctrl_get_pin_name,
        .get_functions_count = armada_38x_pinctrl_get_functions_count,