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
This commit is contained in:
Tudor Ambarus 2021-11-06 12:29:15 +02:00
parent e7ad9f59f7
commit 65b54ff67a
6 changed files with 7 additions and 7 deletions

View File

@ -19,7 +19,7 @@ static void gd25q256_default_init(struct spi_nor *nor)
nor->params->quad_enable = spi_nor_sr1_bit6_quad_enable;
}
static struct spi_nor_fixups gd25q256_fixups = {
static const struct spi_nor_fixups gd25q256_fixups = {
.default_init = gd25q256_default_init,
};

View File

@ -25,7 +25,7 @@ is25lp256_post_bfpt_fixups(struct spi_nor *nor,
return 0;
}
static struct spi_nor_fixups is25lp256_fixups = {
static const struct spi_nor_fixups is25lp256_fixups = {
.post_bfpt = is25lp256_post_bfpt_fixups,
};

View File

@ -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,
};

View File

@ -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,
};

View File

@ -168,7 +168,7 @@ static int s28hs512t_post_bfpt_fixup(struct spi_nor *nor,
return 0;
}
static struct spi_nor_fixups s28hs512t_fixups = {
static const struct spi_nor_fixups s28hs512t_fixups = {
.default_init = s28hs512t_default_init,
.post_sfdp = s28hs512t_post_sfdp_fixup,
.post_bfpt = s28hs512t_post_bfpt_fixup,
@ -190,7 +190,7 @@ s25fs_s_post_bfpt_fixups(struct spi_nor *nor,
return 0;
}
static struct spi_nor_fixups s25fs_s_fixups = {
static const struct spi_nor_fixups s25fs_s_fixups = {
.post_bfpt = s25fs_s_post_bfpt_fixups,
};

View File

@ -28,7 +28,7 @@ w25q256_post_bfpt_fixups(struct spi_nor *nor,
return 0;
}
static struct spi_nor_fixups w25q256_fixups = {
static const struct spi_nor_fixups w25q256_fixups = {
.post_bfpt = w25q256_post_bfpt_fixups,
};