From: Krzysztof Kozlowski Date: Mon, 5 Jan 2015 09:07:01 +0000 (+0100) Subject: spi: meson: Constify struct regmap_config X-Git-Tag: v4.0-rc1~167^2~3^5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9caf5067b9cb92c4383909ad1748c804ce223c7d;p=karo-tx-linux.git spi: meson: Constify struct regmap_config The regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-meson-spifc.c b/drivers/spi/spi-meson-spifc.c index 1bbac0378bf7..5468fc70dbf8 100644 --- a/drivers/spi/spi-meson-spifc.c +++ b/drivers/spi/spi-meson-spifc.c @@ -85,7 +85,7 @@ struct meson_spifc { struct device *dev; }; -static struct regmap_config spifc_regmap_config = { +static const struct regmap_config spifc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4,