mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Jonathan Cameron <jic23@kernel.org>
Cc: Lucas Oshiro <lucasseikioshiro@gmail.com>,
	knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
	linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org,
	kernel-usp@googlegroups.com,
	Anderson Reis <andersonreisrosa@gmail.com>
Subject: Re: [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err
Date: Wed, 20 Feb 2019 14:22:52 -0800	[thread overview]
Message-ID: <68f8ea8165f4a87cd1c99c14f2d1cc3ecdd54ed3.camel@perches.com> (raw)
In-Reply-To: <20190220094921.6777d6f8@archlinux>

On Wed, 2019-02-20 at 09:49 +0000, Jonathan Cameron wrote:
> On Mon, 18 Feb 2019 13:01:23 -0800 Joe Perches <joe@perches.com> wrote:
> > On Mon, 2019-02-18 at 14:22 -0300, Lucas Oshiro wrote:
> > > Add missing '\n' at the end of dev_err message on line 215.  
> > []
> > > diff --git 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\n");  
> > 
> > Perhaps a copy/paste error as the test is for
> > external-tia-resistor and not tia-gain-ohm
> > 
> It is an odd construct, but I think this is correct.  What it is actually
> saying is that, given that we don't have an external resistor, we care
> that the tia-gain-ohm isn't set (otherwise it wouldn't matter).
> 
> From the docs
>   - ti,external-tia-resistor: if the property ti,tia-gain-ohm is not defined this
>     needs to be set to signal that an external resistor value is being used.
> 
> So, it might be ideal to say that tia-gain-ohm is not defined and we do
> not have an external resistor specified.
> 
> So not wrong, but could be more informative!  So perhaps a follow up patch
> to tidy that up would be good.

Then thanks in advance for doing that.
cheers, Joe


  reply	other threads:[~2019-02-20 22:22 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18 17:22 [PATCH 0/5] iio:potentiostat:lmp91000: Adjust codestyle, and minor cleanup changes Lucas Oshiro
2019-02-18 17:22 ` [PATCH 1/5] iio:potentiostat:lmp91000: remove unnecessary parentheses Lucas Oshiro
2019-02-18 17:22 ` [PATCH 2/5] iio:potentiostat:lmp91000: insert braces around if arms Lucas Oshiro
2019-02-18 17:22 ` [PATCH 3/5] iio:potentiostat:lmp91000: reduce line width and remove blank line Lucas Oshiro
2019-02-18 17:22 ` [PATCH 4/5] iio:potentiostat:lmp91000: invert if statement Lucas Oshiro
2019-02-20  9:52   ` Jonathan Cameron
2019-02-18 17:22 ` [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err Lucas Oshiro
2019-02-18 21:01   ` Joe Perches
2019-02-20  9:49     ` Jonathan Cameron
2019-02-20 22:22       ` Joe Perches [this message]
2019-02-26 20:15         ` Lucas Oshiro
2019-03-03 16:49           ` Jonathan Cameron
2019-02-20  9:41 ` [PATCH 0/5] iio:potentiostat:lmp91000: Adjust codestyle, and minor cleanup changes Jonathan Cameron

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=68f8ea8165f4a87cd1c99c14f2d1cc3ecdd54ed3.camel@perches.com \
    --to=joe@perches.com \
    --cc=andersonreisrosa@gmail.com \
    --cc=jic23@kernel.org \
    --cc=kernel-usp@googlegroups.com \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lucasseikioshiro@gmail.com \
    --cc=pmeerw@pmeerw.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®