]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: bootstd: Staticize and constify driver ops
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 7 May 2026 22:07:48 +0000 (00:07 +0200)
committerPeng Fan <peng.fan@nxp.com>
Fri, 15 May 2026 03:45:40 +0000 (11:45 +0800)
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: Simon Glass <sjg@chromium.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/mmc_bootdev.c

index 5a1688b75d09f08e38590ca4937d71d966db652b..b382521fdebd1183f6649234ac327ad0a0c18060 100644 (file)
@@ -19,7 +19,7 @@ static int mmc_bootdev_bind(struct udevice *dev)
        return 0;
 }
 
-struct bootdev_ops mmc_bootdev_ops = {
+static const struct bootdev_ops mmc_bootdev_ops = {
 };
 
 static const struct udevice_id mmc_bootdev_ids[] = {