]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/hwmon/pmbus/adm1275.c
can: dev: increase bus-off message severity
[mirror_ubuntu-bionic-kernel.git] / drivers / hwmon / pmbus / adm1275.c
index 00d6995af4c23c50ea3e0de261bc641bd2ba88ee..8a44e94d567955ee5d3c5f02ecb2afc53a58d88c 100644 (file)
@@ -154,7 +154,7 @@ static int adm1275_read_word_data(struct i2c_client *client, int page, int reg)
        const struct adm1275_data *data = to_adm1275_data(info);
        int ret = 0;
 
-       if (page)
+       if (page > 0)
                return -ENXIO;
 
        switch (reg) {
@@ -240,7 +240,7 @@ static int adm1275_write_word_data(struct i2c_client *client, int page, int reg,
        const struct adm1275_data *data = to_adm1275_data(info);
        int ret;
 
-       if (page)
+       if (page > 0)
                return -ENXIO;
 
        switch (reg) {