projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97bf6af
)
spi: meson: Constify struct regmap_config
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:07:01 +0000
(10:07 +0100)
committer
Mark Brown
<broonie@kernel.org>
Mon, 5 Jan 2015 20:11:32 +0000
(20:11 +0000)
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>
drivers/spi/spi-meson-spifc.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-meson-spifc.c
b/drivers/spi/spi-meson-spifc.c
index
1bbac03
..
5468fc7
100644
(file)
--- 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,