Commit 71a7766b authored by Anderson Reis's avatar Anderson Reis Committed by Jonathan Cameron

iio:potentiostat:lmp91000: change dev_err message

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: default avatarAnderson Reis <andersonreisrosa@gmail.com>
Signed-off-by: default avatarLucas Oshiro <lucasseikioshiro@gmail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b11a89d5
...@@ -212,7 +212,7 @@ static int lmp91000_read_config(struct lmp91000_data *data) ...@@ -212,7 +212,7 @@ static int lmp91000_read_config(struct lmp91000_data *data)
ret = of_property_read_u32(np, "ti,tia-gain-ohm", &val); ret = of_property_read_u32(np, "ti,tia-gain-ohm", &val);
if (ret) { if (ret) {
if (!of_property_read_bool(np, "ti,external-tia-resistor")) { 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; return ret;
} }
val = 0; val = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment