Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp379815imp; Wed, 20 Feb 2019 01:50:39 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib/MJOvzH02MgZX4XPilODREvwJ8hJYcgDWjWAiCgR7opDecCFv/dAhB+q7wfylb9KCcMhs X-Received: by 2002:a63:305:: with SMTP id 5mr22288055pgd.57.1550656239687; Wed, 20 Feb 2019 01:50:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550656239; cv=none; d=google.com; s=arc-20160816; b=W0xgQnDnKZ+wFBBSrVxmc/fUP7eW2kDEBgy4WQwojiCBkdI+7DHEHiyz/526bKOJCd abhVR4DULOr8COEriORfT6FV3SLI8X7T/qdGCNsE64542tCkevTltwfDEWKvN5tPBqAW urV8+DhxIC2tEZPnLsDTWJ+smSp9BCYH558FMv+vtC6O8uGW7bOfAKvWrqKCQjaBhktb K4jdeJnqInZOl6fZU6kTlPZdRNLuVWCl44gIjbUxpitwNTzRopFVb/TnWdgut4oKfhVb 0NxnomQWYZ++FZI9lshdqM4TK+FujRn5akW2MDpSKrZooL3wn91wzhl0x3Z8u4rwDq2q q4mQ== 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=qxWFxq8XTAHF3dl8AIfUIe5bn7hJXZqCv1H/P9+3eSk=; b=KIdDOvLXZ0+p3E/oQgSH0uShcF5HRoi3yKO6XegGiCrJAjXcB7aP4+EWp3Yr/i8PAw g169a6Z8aY7aRG4dOs4wntM7cbY74SX9Kg8feKSGmRfU25Tw2YvpROl3H3JC4d3wJ7Hf lMDS68K5hQWQUsNUiX0MO3WUvCfREjF6qm4CpE8tDJvTTx5af0MJ2BpcYMFl4HRmapGe lz/+0fUPLfzDHwfSqvfo9BeZf8Suv/0zoAOmdjLnBzn1IDaXAQRUCbcSWipeRS7XqEcQ kWJl0DCHpLISoX3mHY9yxUHwyQHbRvwySsof0FYhTd6nyxXxp2c580UR1yUQgzgjpk35 9xtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bgEGcttp; 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 h22si16604632pfn.89.2019.02.20.01.50.24; Wed, 20 Feb 2019 01:50:39 -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=bgEGcttp; 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 S1727134AbfBTJt1 (ORCPT + 99 others); Wed, 20 Feb 2019 04:49:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:51062 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbfBTJt1 (ORCPT ); Wed, 20 Feb 2019 04:49:27 -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 B56BC2089F; Wed, 20 Feb 2019 09:49:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550656166; bh=b0/CIC/3g6HjGTT/aSCcFLmZwYcBydbElzyyHpjyemU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bgEGcttpXfXIZolrISb4fbJrPZvRY2od1JDYtJjVMv8QBxOXuJb0onmtuKuflee08 85kozmuBkornmsXSD5fxD+YRKOEDmZhKXtsxfWf1a27zdjdbfv1xyJCqZ2N9gftHtd 0yvD1lcF4e0BJEIiuaPAUREfbXe3PwbUKQMOfAzw= Date: Wed, 20 Feb 2019 09:49:21 +0000 From: Jonathan Cameron To: Joe Perches 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 Subject: Re: [PATCH 5/5] iio:potentiostat:lmp91000: add '\n' on dev_err Message-ID: <20190220094921.6777d6f8@archlinux> In-Reply-To: References: <20190218172236.7781-1-lucasseikioshiro@gmail.com> <20190218172236.7781-6-lucasseikioshiro@gmail.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: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. =20 > [] > > diff --git a/drivers/iio/potentiostat/lmp91000.c b/drivers/iio/potentio= stat/lmp91000.c =20 > [] > > @@ -212,7 +212,7 @@ static int lmp91000_read_config(struct lmp91000_dat= a *data) > > ret =3D 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"); =20 >=20 > Perhaps a copy/paste error as the test is for > external-tia-resistor and not tia-gain-ohm >=20 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). =46rom the docs - ti,external-tia-resistor: if the property ti,tia-gain-ohm is not define= d 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. Jonathan >=20