diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 10:07:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-01-05 20:11:32 +0000 |
commit | 9caf5067b9cb92c4383909ad1748c804ce223c7d (patch) | |
tree | 000619e2d5c48a3834844e13f6af9746da3e2fd3 /drivers/spi | |
parent | 97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff) |
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 <k.kozlowski@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-meson-spifc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |