diff options
| author | Marek Vasut <[email protected]> | 2026-05-07 18:42:40 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | 64abe3cfcc1e86f3f1957622ad6b6732daf59c01 (patch) | |
| tree | 2325fe36b137997ce96a2a7bfb60938c34228e39 | |
| parent | 2908a3f35b087d754dad04f746b45a5ed2c40972 (diff) | |
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 <[email protected]>
Acked-by: Quentin Schulz <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | drivers/block/rkmtd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/rkmtd.c b/drivers/block/rkmtd.c index f84cacd7ead..9334ab24a61 100644 --- a/drivers/block/rkmtd.c +++ b/drivers/block/rkmtd.c @@ -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, }; |
