diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-11-06 13:29:15 +0300 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-12-23 11:17:03 +0300 |
commit | 65b54ff67afab2754d61289ec59806d71c7dc0e8 (patch) | |
tree | de948d4641f9d0de0c76afe645ac72dad5e13267 /drivers/mtd/spi-nor/macronix.c | |
parent | e7ad9f59f746f07055c361bc3b32491448310b8f (diff) | |
download | linux-65b54ff67afab2754d61289ec59806d71c7dc0e8.tar.xz |
mtd: spi-nor: Constify part specific fixup hooks
Constify 'struct spi_nor_fixups' in order to respect flash_info
structure declaration.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20211106102915.153552-1-tudor.ambarus@microchip.com
Diffstat (limited to 'drivers/mtd/spi-nor/macronix.c')
-rw-r--r-- | drivers/mtd/spi-nor/macronix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/macronix.c b/drivers/mtd/spi-nor/macronix.c index 67aaa83038b6..97dba1ae7fb1 100644 --- a/drivers/mtd/spi-nor/macronix.c +++ b/drivers/mtd/spi-nor/macronix.c @@ -28,7 +28,7 @@ mx25l25635_post_bfpt_fixups(struct spi_nor *nor, return 0; } -static struct spi_nor_fixups mx25l25635_fixups = { +static const struct spi_nor_fixups mx25l25635_fixups = { .post_bfpt = mx25l25635_post_bfpt_fixups, }; |