diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-01-05 09:57:55 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-01-25 21:23:58 -0800 |
commit | 3c535bca9a43eb04d64537b55994c88e399a9981 (patch) | |
tree | cce754a10bfde307ae1de820c16f15c0ebf1276f /drivers/hwmon/nct7802.c | |
parent | 26bc420b59a38e4e6685a73345a0def461136dce (diff) | |
download | linux-3c535bca9a43eb04d64537b55994c88e399a9981.tar.bz2 |
hwmon: (nct7802) 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: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/nct7802.c')
-rw-r--r-- | drivers/hwmon/nct7802.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c index ec5678289e4a..55765790907b 100644 --- a/drivers/hwmon/nct7802.c +++ b/drivers/hwmon/nct7802.c @@ -779,7 +779,7 @@ static bool nct7802_regmap_is_volatile(struct device *dev, unsigned int reg) return reg != REG_BANK && reg <= 0x20; } -static struct regmap_config nct7802_regmap_config = { +static const struct regmap_config nct7802_regmap_config = { .reg_bits = 8, .val_bits = 8, .cache_type = REGCACHE_RBTREE, |