Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp1854999imb; Sun, 3 Mar 2019 08:50:06 -0800 (PST) X-Google-Smtp-Source: APXvYqxV0WKQLFL5L2iDE7e0psWQodpSqD1emUoOhp14jRvdQn6s6F9ONXMkjrtyUp73YNUpNkNy X-Received: by 2002:a63:4e05:: with SMTP id c5mr14783442pgb.393.1551631806540; Sun, 03 Mar 2019 08:50:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551631806; cv=none; d=google.com; s=arc-20160816; b=dVM8B38fqR5I/6dOG4aIKju0/UnAYzpYl0/CtlDjSba54qcELk3dww734T6kbAS9tP R6UrSQ/UkCUQvE+ZI4Q1YLYMVJv6bt2YkGkzMxcc8XyiX0tg7tyD0wgcboV0+jxmgEbT KYqB/I+DYs6yKnsQ34Evj3uuLMSBQzwteawAXrbRqxoVvV+JnhKCwZMu5fuzBWh9Zeii exw9TnUst1PGPnO6PtpBd5nei87dbC+VVnyO8dfyA0ZJKNSzLxDpPRG9RXRJIvbS77Jn 2TI3pNiiz81Q3p7Oow2BSqeChqHS0izDfk63pgom6nHDlg+oqVTZkyJhMRAIp/MUYYBF C9WA== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=MsehFG6xbdglvAAgufNZ9XAf0r0yHgdW7rL9ayEHJgw=; b=rdZPoTUwYrPiSv4SwpTyI28TwwWN8Yfm7FHOPpS+mgI0mHjTt/foa2d+jKVi56apWZ NX6wdQvbX3ypJOwHA1Tr2iGmhjSUnAxinxssA+yjVUeTlP2aSlX37s9e67Db7/gsRBbJ 2sao/NXcpa0pifbQirsjaNBgvKlpIBd6ry9A7GWbctqxUOaYkNZ1u8BuIKDtuksjq6PM /zbaVZfag0yncLfhQ+d2U+XbJpuokxtqdphX2nuEAwngO3+oMyucy+ACezp8vGQWs1yU beXJBvi968zGoKA00EFGro/JP58HpYx0xdG7XHCTOvzFLhyzjQltXUUVuDe2NPqjN2MQ 5B0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UlD+16/N"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si3361060plb.289.2019.03.03.08.49.51; Sun, 03 Mar 2019 08:50:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b="UlD+16/N"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726476AbfCCQtZ (ORCPT + 99 others); Sun, 3 Mar 2019 11:49:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:41982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbfCCQtZ (ORCPT ); Sun, 3 Mar 2019 11:49:25 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 543982070B; Sun, 3 Mar 2019 16:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1551631764; bh=Rl2CGWLqZvnE3YMZHGeGQW42RwOoQFz5g4P0iJR2oec=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=UlD+16/NL3RaHAylM8iR8O/g8rWEuyChbcfjGL01W6bR64+FyW/bCvZaE2VIh8IWM Ck/CDxT1wbdvV0asN/prvxYaPv+bPLM94WhX2dOAAHZGuS22CBoJUOHDjcIa3OiW89 R6BSkrC+CiNhk+EJSt9u27z9xRyWequhuMWx6KUU= Date: Sun, 3 Mar 2019 16:49:18 +0000 From: Jonathan Cameron To: Lucas Oshiro Cc: Joe Perches , 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 Subject: Re: [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err Message-ID: <20190303164918.0bb5bd72@archlinux> In-Reply-To: References: <20190218172236.7781-1-lucasseikioshiro@gmail.com> <20190218172236.7781-6-lucasseikioshiro@gmail.com> <20190220094921.6777d6f8@archlinux> <68f8ea8165f4a87cd1c99c14f2d1cc3ecdd54ed3.camel@perches.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 26 Feb 2019 17:15:52 -0300 Lucas Oshiro wrote: > Thanks for the review! > > On 20/02/2019 19:22, Joe Perches wrote: > > 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. > > So, this means that it's a good idea to change the dev_err message to something > like "no ti,tia-gain-ohm defined and external resistor not specified"? Exactly. Thanks, Jonathan > > > > > Then thanks in advance for doing that. > > cheers, Joe > >