mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user