diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-11-06 11:29:15 +0100 |
---|---|---|
committer | Tudor Ambarus <tudor.ambarus@microchip.com> | 2021-12-23 09:17:03 +0100 |
commit | 65b54ff67afab2754d61289ec59806d71c7dc0e8 (patch) | |
tree | de948d4641f9d0de0c76afe645ac72dad5e13267 /drivers/mtd/spi-nor/micron-st.c | |
parent | mtd: spi-nor: core: Remove reference to spi-nor.c (diff) | |
download | linux-65b54ff67afab2754d61289ec59806d71c7dc0e8.tar.xz linux-65b54ff67afab2754d61289ec59806d71c7dc0e8.zip |
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/micron-st.c')
-rw-r--r-- | drivers/mtd/spi-nor/micron-st.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/micron-st.c b/drivers/mtd/spi-nor/micron-st.c index 2f3054b2f0b2..97e82d4f9f1f 100644 --- a/drivers/mtd/spi-nor/micron-st.c +++ b/drivers/mtd/spi-nor/micron-st.c @@ -113,7 +113,7 @@ static void mt35xu512aba_post_sfdp_fixup(struct spi_nor *nor) nor->params->quad_enable = NULL; } -static struct spi_nor_fixups mt35xu512aba_fixups = { +static const struct spi_nor_fixups mt35xu512aba_fixups = { .default_init = mt35xu512aba_default_init, .post_sfdp = mt35xu512aba_post_sfdp_fixup, }; |