diff options
| author | Marek Vasut <[email protected]> | 2026-05-08 00:08:10 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-18 16:56:07 -0600 |
| commit | da1ac763c9819a4326582bb048082ea8250a4077 (patch) | |
| tree | 4e6a50e8130041b5008a3ba85bff75b67b16c70b /drivers | |
| parent | 9ef7c13308f685ebc701f1f0e3e686034ddda87e (diff) | |
mtd: spi: bootstd: 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]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Takahiro Kuwano <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/mtd/spi/sf_bootdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf_bootdev.c b/drivers/mtd/spi/sf_bootdev.c index 017a74a3016..6ace4ee0aed 100644 --- a/drivers/mtd/spi/sf_bootdev.c +++ b/drivers/mtd/spi/sf_bootdev.c @@ -57,7 +57,7 @@ static int sf_bootdev_bind(struct udevice *dev) return 0; } -struct bootdev_ops sf_bootdev_ops = { +static const struct bootdev_ops sf_bootdev_ops = { .get_bootflow = sf_get_bootflow, }; |
