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]>
---
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/spi/apple_spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/apple_spi.c b/drivers/spi/apple_spi.c
index 5f94e9f7a74..acb74886708 100644
--- a/drivers/spi/apple_spi.c
+++ b/drivers/spi/apple_spi.c
@@ -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,
-- 
2.53.0

Reply via email to