From: Anderson Reis Date: Fri, 8 Mar 2019 19:46:55 +0000 (-0300) Subject: iio:potentiostat:lmp91000: change dev_err message X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=71a7766b36f32ece32346985e9bed63e23847914;p=linux.git 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 Signed-off-by: Lucas Oshiro Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentiostat/lmp91000.c index 7127ab926b9e9..a0e5f530faa9b 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;