block: rockchip: Staticize and constify driver ops

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>
Acked-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Marek Vasut
2026-05-07 18:42:40 +02:00
committed by Tom Rini
parent 2908a3f35b
commit 64abe3cfcc

View File

@@ -935,7 +935,7 @@ int rkmtd_detach_mtd(struct udevice *dev)
return 0;
}
struct rkmtd_ops rkmtd_ops = {
static const struct rkmtd_ops rkmtd_ops = {
.attach_mtd = rkmtd_attach_mtd,
.detach_mtd = rkmtd_detach_mtd,
};