Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp516655rbb; Sat, 24 Feb 2024 10:15:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU2xP0kcjaue5vG7Gpde7L9ZatQsPK7mRzg62tk2UUAcd12IYgZTvxiiV84ayjJp1R7FDGXS7p9EUmyGtUz8jDgUeZ0RXgoYyq1J2q+8A== X-Google-Smtp-Source: AGHT+IGpQkqZPdv7Ei8deETmI5siS2qABLNXh88Lj20woHvpL/xqFIrejEEvO1ZIeoAcKw+bZDHI X-Received: by 2002:a17:902:d883:b0:1d9:b099:6f9 with SMTP id b3-20020a170902d88300b001d9b09906f9mr3868480plz.45.1708798513128; Sat, 24 Feb 2024 10:15:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708798513; cv=pass; d=google.com; s=arc-20160816; b=QS1DDwiVRIqwJl1qovBkkRhqjQzZ4rz/OgjG1vMox2Ry8fG262qb7olOXu2LWuxMcy iuxhQLTGQxM5uNZ2yX0+y1oO4L00WJ2N8EmMQEH1s0jskfo9y4JVAnS0iRnR3/77nYMQ TahzEqZv10yAGMIVLNp90N8lSBQu5pPF/qJVhFb06cRgzJOxi0jRc+nZtJvYjL6XbDIH x9eVyDE0UoOpeHmdwwtTcvojGLzu4xBwpUPqU1kcx1gJVcTheZ/oRB3/ARBysZldAhUm tytRiXQK7lKUaFpkd3JlY45Vw6XDeTigS3qJPhsSqhayKgA4UnGn0cv0QjtCM+1pcORJ uegg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=PCB9PJgcdo0F5bBy8S8ZRWVqashO4yrRStlnsLA7dEw=; fh=g2OxKLE3ysCxTNy2nG9ZVTTxLVLH47rLv77WMAbXeLo=; b=neOtR730oCAcByN5KgpfV4b/cY1VJkxPWm5jZfvz9/9DwNE4gpGi6UvQzPGdfRleE8 TSNLjxoDEzrbH94Aj+6u0k6ISiCnZ9bPxC6JHatXBGM31NyvVz2rMaq5juBJCA13riwg kskfhzRDgG9B5on1ScQWvmtdBAtziiD7P6e27wn9owrPPmk0FTdKSoJRdMKljXnl7y/b lh/fR5CMdGmAckrcbylLB9o4ygq9NWiSyVRru/neSFKD3cmHVSS4gsRLlATFxtWO89/U uiqJQ6xJgDsnm0baIJ9HbntquhDWtsXV15E/9Gq+u5CkWVFaKfNrh77kiUCf7F+oQ6tm yLtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dtQ+ukrf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79785-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id b9-20020a170903228900b001dc879957desi845533plh.634.2024.02.24.10.15.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 10:15:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=dtQ+ukrf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79785-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79785-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 435B1B20E40 for ; Sat, 24 Feb 2024 18:14:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0FC834C634; Sat, 24 Feb 2024 18:14:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="dtQ+ukrf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 31AD916429; Sat, 24 Feb 2024 18:14:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708798449; cv=none; b=XDelPixgj6Zo8uH5Nqzy855POEsrht4NVmA72150Nyq84ZU0qq4+rTuJ8eokda6BqfkADifO6w5JmxT7yXDhSUHTk7qwPf6YJpekDZec7EofEmCxff4woSg8oYN4O+ewRe6Ri3zp/IE6UU5EDC1RuSPgRnkSbsVFAniFVMLMsTE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708798449; c=relaxed/simple; bh=LB41P1zdziD/jinsl8eBZ2jf6IUljvsn2veNnk/hyj4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hPZ0rdXWQDHWuW1nQ6N7fCTX7dFCIual8Ev7vpwEd1yz9gcvNUY9c1gXzVK5gaAxLiRuPxBjEGrDYkGF6NNcVAgjwM0bnyRQ2H4O1OM9ErLPV+0RU1IWz1EGf4lSUnjY1MxRsDe+9RQ0ab+qChmxuajJVdvlAEjC1J+08BhqrCU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=dtQ+ukrf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CBD15C43390; Sat, 24 Feb 2024 18:14:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708798448; bh=LB41P1zdziD/jinsl8eBZ2jf6IUljvsn2veNnk/hyj4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=dtQ+ukrfmNwsDQuwcwye86Idu3Tus8e10nud7wuuCqnyBRLoX2CEcwOOTp2f77lph yjy080zAGeT2zbDBVJD1rCdow4rI0F/Z+YgNmhHQu/FA1cjL+ZjKcnwLffqgMl0nH4 9kceuBvtBzUoh3lJbG+lC/CDwnZWGKwEGZ8cAwr+PqdAZScJXF2NL3kyP1xY+NZoux 12jhcgICiJeILqV192V/OkbB7BRrbnFq72vcLja9JBDPA6kcmGmR5GeEbhXACk/aDL NOviesZbuxdyW8wT0ba+cgX/O+0EH8f4nhxPo1vlOgNT53/s77RDEfCNVb24zvJwf2 LynEZEStSgO8w== Date: Sat, 24 Feb 2024 18:13:54 +0000 From: Jonathan Cameron To: Mike Looijmans Cc: Dan Carpenter , Lars-Peter Clausen , Andy Shevchenko , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 1/2] iio: adc: ti-ads1298: Fix error code in probe() Message-ID: <20240224181354.76842da7@jic23-huawei> In-Reply-To: References: <5f393a87-ca8b-4e68-a6f4-a79f75a91ccb@moroto.mountain> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 22 Feb 2024 08:10:25 +0100 Mike Looijmans wrote: > Good catch on both patches. > > If so desired, you have my > > Acked-by: Mike Looijmans Dan, here is a classic example of why I think any series with more than 1 patch could benefit from a cover letter. It gives somewhere for reviewers to give tags for the lot in a fashion b4 can understand. Otherwise great find and applied to the togreg branch of iio.git with Mike's tag added to both of them! Hopefully the fixes tags will remain stable - whilst in theory that tree doesn't get rebased, in practice it might if I messed anything up enough :( Thanks Jonathan > > > > On 22-02-2024 07:14, Dan Carpenter wrote: > > There is a copy and paste bug here, it should be "reg_vref" instead of > > "reg_avdd". The "priv->reg_avdd" variable is zero so it ends up > > returning success. > > > > Fixes: 00ef7708fa60 ("iio: adc: ti-ads1298: Add driver") > > Signed-off-by: Dan Carpenter > > --- > > drivers/iio/adc/ti-ads1298.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/iio/adc/ti-ads1298.c b/drivers/iio/adc/ti-ads1298.c > > index ed895a30beed..67637f1abdc7 100644 > > --- a/drivers/iio/adc/ti-ads1298.c > > +++ b/drivers/iio/adc/ti-ads1298.c > > @@ -657,7 +657,7 @@ static int ads1298_probe(struct spi_device *spi) > > priv->reg_vref = devm_regulator_get_optional(dev, "vref"); > > if (IS_ERR(priv->reg_vref)) { > > if (PTR_ERR(priv->reg_vref) != -ENODEV) > > - return dev_err_probe(dev, PTR_ERR(priv->reg_avdd), > > + return dev_err_probe(dev, PTR_ERR(priv->reg_vref), > > "Failed to get vref regulator\n"); > > > > priv->reg_vref = NULL; > >