Skip to content

Commit

Permalink
spi: meson: Constify struct regmap_config
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Krzysztof Kozlowski authored and Mark Brown committed Jan 5, 2015
1 parent 97bf6af commit 9caf506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-meson-spifc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9caf506

Please sign in to comment.