summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-meson-spifc.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 10:07:01 +0100
committerMark Brown <broonie@kernel.org>2015-01-05 20:11:32 +0000
commit9caf5067b9cb92c4383909ad1748c804ce223c7d (patch)
tree000619e2d5c48a3834844e13f6af9746da3e2fd3 /drivers/spi/spi-meson-spifc.c
parent97bf6af1f928216fd6c5a66e8a57bfa95a659672 (diff)
downloadop-kernel-dev-9caf5067b9cb92c4383909ad1748c804ce223c7d.zip
op-kernel-dev-9caf5067b9cb92c4383909ad1748c804ce223c7d.tar.gz
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 1bbac03..5468fc7 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,
OpenPOWER on IntegriCloud