]> git.karo-electronics.de Git - linux-beck.git/commitdiff
at86rf230: Constify struct regmap_config
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 5 Jan 2015 09:02:31 +0000 (10:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2015 21:30:50 +0000 (16:30 -0500)
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: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/at86rf230.c

index 80632fc59756c0645ea904a4dd1493e4bdec7197..7b051eacb7f184a3770294b5b0d7d60aae5fbe2d 100644 (file)
@@ -427,7 +427,7 @@ at86rf230_reg_precious(struct device *dev, unsigned int reg)
        }
 }
 
-static struct regmap_config at86rf230_regmap_spi_config = {
+static const struct regmap_config at86rf230_regmap_spi_config = {
        .reg_bits = 8,
        .val_bits = 8,
        .write_flag_mask = CMD_REG | CMD_WRITE,