Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp66287imp; Wed, 20 Feb 2019 14:23:51 -0800 (PST) X-Google-Smtp-Source: AHgI3Iai8JCI1gKV9jjVXSA7i9SD9XcBHvCryFIr+hOcbgHvvkF7FP6mWOuggM/9dD7J5V5NKUOO X-Received: by 2002:a63:5813:: with SMTP id m19mr31340091pgb.294.1550701431049; Wed, 20 Feb 2019 14:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550701431; cv=none; d=google.com; s=arc-20160816; b=kkhpQp2amH5G2EXXwmFyhkgaL0Yzd+PwqfjDo/ueHl7w5sD8q59QEnIP2uxVsNuD9F abw0+PkgSydiyI46fTBtIONitQ3qEsC9/oQSEb8AsZ0zTYS3QxNEZl/hSo663VC7XeH8 d/GlUCDhUdETCrlrw5N7MRskisLTCRnOXGMwH5+UQwO24Ws349NSq8N/f0jVrfH89SY0 uKBadRsSNSkphDwSMuQ8t4kKHhP1EYHb1oXPu/R+I/RQhr88BzgIssEs6Mscu/tqmqSL lOjXtEHupJUGwJ95hGZV5Ds71xQh2KWErO76u5HmEA6bzTCaWG2c3uIgjX8H6Lk1sr+I qUhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=KE4xbOjmAHkHecyqFd0Q1flo/+HvWu/QGI83QeKe+2M=; b=aOlapFtI4CfRWNbYqfIzimp9JOLluhvThkBbktrDS6zD6lsDhB43x6QMuNJYPjT9rs 3X2mJz1+P5j6upef4CZGWH9T6Owt3KBr31ACVBDWSbZa7c9VMvdqdWdkhG/u/XCAgKgP CckSBAhDqgYJGFARtK5Zhbe+N2ZJg5VmciRJlgN1FjKayBOoivsme65cvRHmA0K1QJAS zW8uDyekEAdiHFl3wE+GcMTK83ZUICR1h6w+C0A3pf5XzqNGg1bbFnfw9XH9YsKkpxs+ eT7SVoAk6QtmMrBjKFkWdWAXRbc0Chn3Vujo9QCcNVXJ0dXW4Yrl3+k4hGlzfyCgEEIp WbWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si6904008pgm.210.2019.02.20.14.23.35; Wed, 20 Feb 2019 14:23:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726282AbfBTWW5 (ORCPT + 99 others); Wed, 20 Feb 2019 17:22:57 -0500 Received: from smtprelay0065.hostedemail.com ([216.40.44.65]:37355 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725804AbfBTWW4 (ORCPT ); Wed, 20 Feb 2019 17:22:56 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 1F41618224D6E; Wed, 20 Feb 2019 22:22:55 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 20,1.5,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2328:2393:2553:2559:2562:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3874:4037:4321:5007:9040:10004:10400:10848:10967:11026:11232:11658:11914:12043:12114:12296:12438:12555:12740:12760:12895:13069:13095:13161:13229:13311:13357:13439:14096:14097:14181:14659:14721:14775:21080:21433:21611:21627:30054:30079:30090:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: girls60_365b2667a3c4d X-Filterd-Recvd-Size: 2648 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Wed, 20 Feb 2019 22:22:53 +0000 (UTC) Message-ID: <68f8ea8165f4a87cd1c99c14f2d1cc3ecdd54ed3.camel@perches.com> Subject: Re: [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err From: Joe Perches To: Jonathan Cameron Cc: Lucas Oshiro , 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 Date: Wed, 20 Feb 2019 14:22:52 -0800 In-Reply-To: <20190220094921.6777d6f8@archlinux> References: <20190218172236.7781-1-lucasseikioshiro@gmail.com> <20190218172236.7781-6-lucasseikioshiro@gmail.com> <20190220094921.6777d6f8@archlinux> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2019-02-20 at 09:49 +0000, Jonathan Cameron wrote: > On Mon, 18 Feb 2019 13:01:23 -0800 Joe Perches 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