From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754513AbcK1I37 (ORCPT ); Mon, 28 Nov 2016 03:29:59 -0500 Received: from eusmtp01.atmel.com ([212.144.249.242]:38651 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752805AbcK1I3w (ORCPT ); Mon, 28 Nov 2016 03:29:52 -0500 Subject: Re: [PATCH] mtd: spi-nor: constify fsl_qspi_devtype_data To: LABBE Corentin , , , References: <1471352198-7327-1-git-send-email-clabbe.montjoie@gmail.com> CC: , From: Cyrille Pitchen Message-ID: Date: Mon, 28 Nov 2016 09:29:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1471352198-7327-1-git-send-email-clabbe.montjoie@gmail.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.145.133.18] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 16/08/2016 à 14:56, LABBE Corentin a écrit : > All fsl_qspi_devtype_data structures are never modified. > This patch constify them. > > Signed-off-by: LABBE Corentin Applied to git://github.com/spi-nor/linux.git Thanks! > --- > 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, >