mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user