summaryrefslogtreecommitdiff
path: root/drivers/iio/potentiostat
diff options
context:
space:
mode:
authorAnderson Reis <andersonreisrosa@gmail.com>2019-03-08 22:46:55 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-04 22:19:55 +0300
commit71a7766b36f32ece32346985e9bed63e23847914 (patch)
tree1f8b48736dc48dfa2b3f8bd6a25b5aa9ad5f5be9 /drivers/iio/potentiostat
parentb11a89d5d2493f440b6c718bbcd7dbb0733b02b5 (diff)
downloadlinux-71a7766b36f32ece32346985e9bed63e23847914.tar.xz
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: Anderson Reis <andersonreisrosa@gmail.com> Signed-off-by: Lucas Oshiro <lucasseikioshiro@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/potentiostat')
-rw-r--r--drivers/iio/potentiostat/lmp91000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c
index 7127ab926b9e..a0e5f530faa9 100644
--- a/drivers/iio/potentiostat/lmp91000.c
+++ b/drivers/iio/potentiostat/lmp91000.c
@@ -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;