]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
iio:potentiostat:lmp91000: change dev_err message
authorAnderson Reis <andersonreisrosa@gmail.com>
Fri, 8 Mar 2019 19:46:55 +0000 (16:46 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:55 +0000 (20:19 +0100)
Change dev_err message on line 215 in order to inform that
tia-gain-ohm is not defined and an external resistor is not
specified.

Signed-off-by: Anderson Reis <andersonreisrosa@gmail.com>
Signed-off-by: Lucas Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/potentiostat/lmp91000.c

index 7127ab926b9e9f564cc4acf075c4c628f644f2c7..a0e5f530faa9b1e669f8b43156c796eb42a6ef39 100644 (file)
@@ -212,7 +212,7 @@ static int lmp91000_read_config(struct lmp91000_data *data)
        ret = of_property_read_u32(np, "ti,tia-gain-ohm", &val);
        if (ret) {
                if (!of_property_read_bool(np, "ti,external-tia-resistor")) {
-                       dev_err(dev, "no ti,tia-gain-ohm defined");
+                       dev_err(dev, "no ti,tia-gain-ohm defined and external resistor not specified\n");
                        return ret;
                }
                val = 0;