Received: by 2002:ab2:68c1:0:b0:1fd:9a81:d0e4 with SMTP id e1csp183901lqp; Sat, 8 Jun 2024 11:06:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdbCOU9soY5WvV8b8yWrN2Xgvw150D4snVQ50ZZNd1jp7ygc4oN9YIMUEP8iOlLQyJhG/Y/lSqAty+3LBOo+yl2W4DISr/SRr3bqk0eg== X-Google-Smtp-Source: AGHT+IHGcRJmj4DsL3SWqdCN0NXXvTQvc20xCZ6SyHA+JWvccvagfk/mvbT/SpYxelEt0YmcrJqR X-Received: by 2002:a05:6870:219e:b0:24c:b878:b4fc with SMTP id 586e51a60fabf-2546441a494mr5903026fac.17.1717869975091; Sat, 08 Jun 2024 11:06:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717869975; cv=pass; d=google.com; s=arc-20160816; b=Pk5PYG0Jir3X64FTdtZI3KYen0KTPpRq/T0kNkHrQnFfCL5Kt2AkD7T5iJRjhwL6DU qRko3AcyGjtHuikChNDfp8+Xs6HMYARaKCbvzatffxWbMtrOKhzFpD4M2C9Lk7WMqEbV djyyTAut+NXjS6XQdjfZRTJrQ9skSDAFldK/Uu8S39XeFjLXYZCGGYjVIzvkCrt7iKeh 4Dg44g/4Qtw2RT92ggVTbB6uYjTix6gj7BJA2vR1FqRGn4GTe4qODqTtn8cyeUhSJizR tlHwds9V5Pt3dEHgJ//qktxLtrKrnEVS819dMoVKKZpjvF9Gte0IigZtw6BidO9vXZxO iwug== 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=OTkK9amW/Ew0kcZtL1t/q9fePSwH2mbe16A8ahbCI2s=; fh=WP+EX+pE5ZnvtLxARsK21q/vfT+goH9JAhB5xbGAN+0=; b=Eb1UJIQIW0JWXbHkDQ6+hchm2jPY8QpXF4kSvAAqM2fem3GHarsSfL0t5QyhQnci4r 5goqNHwSDfbw9EBycSSXEks9Y2d0uNKZbfBYK+z16EObYnB4xgAoxLc0alVDIaxXoER/ UdgQTOmGXnDFU548x+aA7GH1X8UXW3adIE5+PlBpUBbvwEpDwdkfTA0xtAhHixPK5yKW G6OnWOOgiJt3umP9ueuX/aj5QWCpgCLD+Y8ZV8mDbxeOd+MMjdIVPlUJI239BF4Tfg2b LKmwLqKPd2kdUrd1AbaarCIS08xqqF7WKYmQs0DiiKRuimdkwifZ/jLs3XFmzi7k1Lh7 1tLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pI1G8e4R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-79532852039si635552385a.85.2024.06.08.11.06.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 Jun 2024 11:06:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pI1G8e4R; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-207168-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207168-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C8A221C20F25 for ; Sat, 8 Jun 2024 18:06:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D1CE1CD2C; Sat, 8 Jun 2024 18:06:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pI1G8e4R" 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 36C4C1C2BD; Sat, 8 Jun 2024 18:06:07 +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=1717869968; cv=none; b=MRayvKAYH98ajUUnyer6ikP1sfltfZrkvMx9mOePAy8l2jQYQEEmerk3sNuKTk3TtAA3AwA/TRqXyxGuq2re/rysDDBNrl0LzgicAjwyYOkzMSIcYEmKgVUtt2WC+4K2fjAxsUjV/tfM32YuIwEt4CHss5s6K6QUMHrsqx1nNdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717869968; c=relaxed/simple; bh=lkZe0nZhvWF0Nm8oZxgbBtz8kQqTGMv4JWMHvMMB8WI=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qVJFOEnx0ob/FWjHHOt3ePweldcBTIyyTgpnHHubyJO5c2hPK2TMttLOR4eVhDZO0bDvhVtrMakq8JT8Fm5QD3w5wNdeXAAW2XD0LBBSpE82t+tedLe5Yeyp5I/KHdyh59hI96bl5xnO3voI7RE/IaGBBeO7ru1QBzndsPCIT6I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pI1G8e4R; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id F3482C2BD11; Sat, 8 Jun 2024 18:06:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717869967; bh=lkZe0nZhvWF0Nm8oZxgbBtz8kQqTGMv4JWMHvMMB8WI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pI1G8e4R7WTm65VnBEcjWAvTup4XKR4phr6NM/ZpBB3ZguoIf7Tz24uZc3CL5bOrG 1BkFWVnrByOlpWaIHguVCRDoxGiLBjBQ03ramcikt/kucbCnsUvJ8KwIm7goRv70mt 91NPKFDnO9JaBfAIUKnrvG0wv8TNUtzo/DodmCY+rzvLpf7BUtzMhJDmECfyHVz8oK dCmG5T9wd+WU5bmqwZAstQs4BoZV9hiNZLY7IslmKbK8SJnVuGs+A2UwX+Q+eQCbd5 XSmg9tSNz6Myqz7iECeXm8csrGdQf54uL9Uv1ECh09OWr4lMk7zW//fDAkfvQj7yZp hunsgbgUCYEZA== Date: Sat, 8 Jun 2024 19:06:00 +0100 From: Jonathan Cameron To: Nuno Sa Cc: Petr Mladek , Lars-Peter Clausen , Olivier Moysan , Jyoti Bhayana , "Andy Shevchenko" , Chris Down , John Ogness , "Greg Kroah-Hartman" , Andi Shyti , , Subject: Re: [PATCH v3 2/4] iio: temperature: ltc2983: convert to dev_err_probe() Message-ID: <20240608190600.622dfd7f@jic23-huawei> In-Reply-To: <20240606-dev-add_dev_errp_probe-v3-2-51bb229edd79@analog.com> References: <20240606-dev-add_dev_errp_probe-v3-0-51bb229edd79@analog.com> <20240606-dev-add_dev_errp_probe-v3-2-51bb229edd79@analog.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; 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, 6 Jun 2024 09:22:38 +0200 Nuno Sa wrote: > Use dev_err_probe() (and variants) in the probe() path. While at it, made > some simple improvements: > * Explicitly included the err.h and errno.h headers; > * Removed some unnecessary line breaks; > * Removed a redundant 'else'; > * Added some missing \n to prink. > > Signed-off-by: Nuno Sa > --- > @@ -1296,8 +1268,8 @@ static int ltc2983_reg_access(struct iio_dev *indio_dev, > > if (readval) > return regmap_read(st->regmap, reg, readval); > - else > - return regmap_write(st->regmap, reg, writeval); > + > + return regmap_write(st->regmap, reg, writeval); > } Unrelated. Otherwise updates look correct to me.