diff options
| author | Marek Vasut <[email protected]> | 2026-05-10 19:16:17 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | 05f76ca898b4fa98b9f875013447a3533d627ca3 (patch) | |
| tree | f4cc4842a42fbeb518be2fe215a682128404933f /drivers | |
| parent | 50e6cda6b6b50b43940687b32c40b7cdd8d707dc (diff) | |
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 <[email protected]>
Acked-by: Mark Kettenis <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/spi/apple_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
