mfd: altera-a10sr: Make altr_a10sr_regmap_config static const
authorAxel Lin <axel.lin@ingics.com>
Fri, 5 Aug 2016 06:40:31 +0000 (14:40 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 4 Oct 2016 14:48:01 +0000 (15:48 +0100)
It's only used in this driver and never get modified, make it static const.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/altera-a10sr.c

index c05aa4ff57fda3611284bd1ce9dafdffb3d0d68a..40ed65e5fb2ad87aea4db6b192c8f88d6eca7175 100644 (file)
@@ -94,7 +94,7 @@ static bool altr_a10sr_reg_volatile(struct device *dev, unsigned int reg)
        }
 }
 
-const struct regmap_config altr_a10sr_regmap_config = {
+static const struct regmap_config altr_a10sr_regmap_config = {
        .reg_bits = 8,
        .val_bits = 8,