mtd: spi-nor: constify fsl_qspi_devtype_data

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Dec 16 11:59:15 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=dfce0cd943fe0554f5f79d5b29624064dafb18cd
Commit:     dfce0cd943fe0554f5f79d5b29624064dafb18cd
Parent:     edd0c8f4932dbf3e21036cb443ba5bdf7449d02b
Author:     LABBE Corentin <clabbe.montjoie at gmail.com>
AuthorDate: Tue Aug 16 14:56:38 2016 +0200
Committer:  Cyrille Pitchen <cyrille.pitchen at atmel.com>
CommitDate: Sat Nov 26 17:45:06 2016 +0100

    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 at gmail.com>
    Acked-by: Han Xu <han.xu at nxp.com>
    Signed-off-by: Cyrille Pitchen <cyrille.pitchen at atmel.com>
---
 drivers/mtd/spi-nor/fsl-quadspi.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c
index 5c82e4e..b4d8953 100644
--- a/drivers/mtd/spi-nor/fsl-quadspi.c
+++ b/drivers/mtd/spi-nor/fsl-quadspi.c
@@ -224,7 +224,7 @@ struct fsl_qspi_devtype_data {
 	int driver_data;
 };
 
-static struct fsl_qspi_devtype_data vybrid_data = {
+static const struct fsl_qspi_devtype_data vybrid_data = {
 	.devtype = FSL_QUADSPI_VYBRID,
 	.rxfifo = 128,
 	.txfifo = 64,
@@ -232,7 +232,7 @@ static struct fsl_qspi_devtype_data vybrid_data = {
 	.driver_data = QUADSPI_QUIRK_SWAP_ENDIAN,
 };
 
-static struct fsl_qspi_devtype_data imx6sx_data = {
+static const struct fsl_qspi_devtype_data imx6sx_data = {
 	.devtype = FSL_QUADSPI_IMX6SX,
 	.rxfifo = 128,
 	.txfifo = 512,
@@ -241,7 +241,7 @@ static struct fsl_qspi_devtype_data imx6sx_data = {
 		       | QUADSPI_QUIRK_TKT245618,
 };
 
-static struct fsl_qspi_devtype_data imx7d_data = {
+static const struct fsl_qspi_devtype_data imx7d_data = {
 	.devtype = FSL_QUADSPI_IMX7D,
 	.rxfifo = 512,
 	.txfifo = 512,
@@ -250,7 +250,7 @@ static struct fsl_qspi_devtype_data imx7d_data = {
 		       | QUADSPI_QUIRK_4X_INT_CLK,
 };
 
-static struct fsl_qspi_devtype_data imx6ul_data = {
+static const struct fsl_qspi_devtype_data imx6ul_data = {
 	.devtype = FSL_QUADSPI_IMX6UL,
 	.rxfifo = 128,
 	.txfifo = 512,



More information about the linux-mtd-cvs mailing list