Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mtd: spi-nor: constify fsl_qspi_devtype_data

All fsl_qspi_devtype_data structures are never modified.
This patch constify them.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Acked-by: Han Xu <han.xu@nxp.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>

authored by

LABBE Corentin and committed by
Cyrille Pitchen
dfce0cd9 edd0c8f4

+4 -4
+4 -4
drivers/mtd/spi-nor/fsl-quadspi.c
··· 224 224 int driver_data; 225 225 }; 226 226 227 - static struct fsl_qspi_devtype_data vybrid_data = { 227 + static const struct fsl_qspi_devtype_data vybrid_data = { 228 228 .devtype = FSL_QUADSPI_VYBRID, 229 229 .rxfifo = 128, 230 230 .txfifo = 64, ··· 232 232 .driver_data = QUADSPI_QUIRK_SWAP_ENDIAN, 233 233 }; 234 234 235 - static struct fsl_qspi_devtype_data imx6sx_data = { 235 + static const struct fsl_qspi_devtype_data imx6sx_data = { 236 236 .devtype = FSL_QUADSPI_IMX6SX, 237 237 .rxfifo = 128, 238 238 .txfifo = 512, ··· 241 241 | QUADSPI_QUIRK_TKT245618, 242 242 }; 243 243 244 - static struct fsl_qspi_devtype_data imx7d_data = { 244 + static const struct fsl_qspi_devtype_data imx7d_data = { 245 245 .devtype = FSL_QUADSPI_IMX7D, 246 246 .rxfifo = 512, 247 247 .txfifo = 512, ··· 250 250 | QUADSPI_QUIRK_4X_INT_CLK, 251 251 }; 252 252 253 - static struct fsl_qspi_devtype_data imx6ul_data = { 253 + static const struct fsl_qspi_devtype_data imx6ul_data = { 254 254 .devtype = FSL_QUADSPI_IMX6UL, 255 255 .rxfifo = 128, 256 256 .txfifo = 512,