spi: apple: 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: Mark Kettenis <kettenis@openbsd.org>
This commit is contained in:
Marek Vasut
2026-05-10 19:16:17 +02:00
committed by Tom Rini
parent 50e6cda6b6
commit 05f76ca898

View File

@@ -228,7 +228,7 @@ static int apple_spi_set_mode(struct udevice *bus, uint mode)
return 0;
}
struct dm_spi_ops apple_spi_ops = {
static const struct dm_spi_ops apple_spi_ops = {
.xfer = apple_spi_xfer,
.set_speed = apple_spi_set_speed,
.set_mode = apple_spi_set_mode,