summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-meson-spifc.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 12:07:01 +0300
committerMark Brown <broonie@kernel.org>2015-01-05 23:11:32 +0300
commit9caf5067b9cb92c4383909ad1748c804ce223c7d (patch)
tree000619e2d5c48a3834844e13f6af9746da3e2fd3 /drivers/spi/spi-meson-spifc.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadlinux-9caf5067b9cb92c4383909ad1748c804ce223c7d.tar.xz
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/spi-meson-spifc.c')
-rw-r--r--drivers/spi/spi-meson-spifc.c2
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,