Merge tag 'wberr-v4.14-1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton...
[sfrench/cifs-2.6.git] / drivers / hwmon / asc7621.c
index c77644d45a026b2f52b9672ac1a925d225acb22d..4875e99b59c97e52a80e453a8a04297152fb43ec 100644 (file)
@@ -512,7 +512,7 @@ static ssize_t show_pwm_ac(struct device *dev,
 {
        SETUP_SHOW_DATA_PARAM(dev, attr);
        u8 config, altbit, regval;
-       const u8 map[] = {
+       static const u8 map[] = {
                0x01, 0x02, 0x04, 0x1f, 0x00, 0x06, 0x07, 0x10,
                0x08, 0x0f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f
        };
@@ -533,7 +533,7 @@ static ssize_t store_pwm_ac(struct device *dev,
        SETUP_STORE_DATA_PARAM(dev, attr);
        unsigned long reqval;
        u8 currval, config, altbit, newval;
-       const u16 map[] = {
+       static const u16 map[] = {
                0x04, 0x00, 0x01, 0xff, 0x02, 0xff, 0x05, 0x06,
                0x08, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x0f,
                0x07, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,