Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp187597lqp; Mon, 10 Jun 2024 00:07:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyiQOek0coRcesqxZdG0xkeEmB16TtGQgtF6pw8IoiexZYxyE1lbOKd/clKXHwBLNl0jDd9z47aecCD/yy2hUlLEVfNVNLGY/Vni8fBw== X-Google-Smtp-Source: AGHT+IFyTe7GZ8cJ38zHB+8WFYq7TZubifAhhqSWXIa3cm1n0feNQv115vV+MnH4m2DE1+nrHJVm X-Received: by 2002:a05:6830:201a:b0:6f9:c154:c035 with SMTP id 46e09a7af769-6f9c154c166mr1320144a34.15.1718003279190; Mon, 10 Jun 2024 00:07:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718003279; cv=pass; d=google.com; s=arc-20160816; b=nqCo6B2+scIu1U7wFWwT4LO+lz/MHGuPdQOaWj0yAhdaHVzMV3TI95m0CRdWQibsjb kVXDTPlUcrbz6pdtcggGREhtL2I8Hxw878P/vdBOEvxaqWT3NDJvk7LGnPKM3J2BAGr5 ZEBV5ywbIkgGyK9saeB/4K29tWitmoJBakoTmc1vDh/OGVKCKcWvH7SVZIJFkFvoWpvl 4wKAhP36sG9ezA2V1QhuPgizNRdRQ23CoAtNrKDT86AV2hXNgaZfOvCxs6DemG1CsGBK iVssNxS+OH1dyc8pq/e/Kk8O/U1d7CFbT6qBQKBBCrbO09nvoGA60tQUVRkkOICuZyO8 XVzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=9XkB6KvYnfdznF+TEx3muL3K/bTdkLsfM+Ybwn3hwEM=; fh=hYkNZ6aQhPRBtSFsXV9RhfJ1WTWqQ5r/DqsMebPCiPs=; b=oP3ipcHoc+2y32T1g6FXMshgXNzuBxiPem/W1LbNxRDQPhGzUyjyxlmb9DGaRSnMDI pnRn+D7ArR56tiamcQZy7tVj2FqF/SneCpj1frEKX7n3XgFTBC7JKtnFTe4y7m29FBuj pzfs5Q2teqTFckzLkm7iTAAC3rgkR701E946Y5faKw5yJNgM4CgXVNwOzU+dlXq9ayVk JiXt3sp+d1xI7C7C4ormeIFimd6xGjapjiZ80qjaV2C36ZsoGvho2QS4gWoRXUUi7bE1 N76AoO0PQ6SZLJ+kRX9Lu89VLTZKvy67bK1R+hpa2v871ZfSKbdfOXdtp2hOu1P5GppG 3V3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QlIsVQbT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b83874si67170061cf.768.2024.06.10.00.07.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 00:07:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207753-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=@gmail.com header.s=20230601 header.b=QlIsVQbT; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-207753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 D43F81C215CE for ; Mon, 10 Jun 2024 07:07:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4CF6F200DB; Mon, 10 Jun 2024 07:07:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QlIsVQbT" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB6591BF2A; Mon, 10 Jun 2024 07:07:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718003264; cv=none; b=OpBZyB/eNnZL72gdQ8XPP3FNu7/21cBmc0f6g3iZLHNEyNvz22cb1gU7GplKD8C+rLAitj9PYkNCnBVtyFTYEq41+rSU3UuVX2KOMRiiDWUGKtiedMsmmGQ2ZzfyAwhH0Dj7s9hr+xp1LUIfv8JzXXMhsyd/nzHirA0agN5eSyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718003264; c=relaxed/simple; bh=rclMQqGEozDHSLQO/TvjwfrxT2QCBhUHXn/GOcGA+tU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=oEiWVQUl79lxWr0OprT62msg14AeubbZFfwcztBSXR4VQUZ8ea8IaghxI9K/4dk8Ow5XPWxe9ZcaZAlezYkCkpOrHHlC4fgBrBJpg39T19pTYI+4yTT82LvrxgOiavH7fjnh8IkQaC4wynk3u8EvOEC/1HOId4K0Tks2zLNOR8g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QlIsVQbT; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-57a31d63b6bso5895932a12.0; Mon, 10 Jun 2024 00:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718003261; x=1718608061; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=9XkB6KvYnfdznF+TEx3muL3K/bTdkLsfM+Ybwn3hwEM=; b=QlIsVQbTYJKox1g30KtTY8gm2tm1Jhts7SOHjtlFy3xgSsr/aMW1iYETtdiEO+PUey 5qecnEORzqUQCB2XWR8o18gp3cmJ8n00sPRG9kGRALLvHgD14LcopZ23SSeStvclqwpo nUK2hD5JIoQXTTSXJXWc81DVJ3Z8/iBT1tUxH2qVeqSbr8epNkXI8S+j3WT0PDQScoil Q25pupMp4O/x5irwrBKMurrjOZDpCuGNaWgglfc+6/p3jd69A3hc5GDz+8D1PfvkKD94 /bDwiP0IbQ4yMbbBDUyomzwLf0BzODrqXq2+w3u0q9aDQV+gPhqDs4ieV6hdDw2Kgz7z Dy2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718003261; x=1718608061; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9XkB6KvYnfdznF+TEx3muL3K/bTdkLsfM+Ybwn3hwEM=; b=QsaKM28f6S5+vR6XiwdoBZ+T6CfBao1jcoga50KUYaQnRsjiuDjz9i+g4UfwICv0jP OBRi/bvRAX4JnV7Ffu1Xzqb6/ulgU/X99yDpHmHWGXKBASpUPavKTpBAhcewPpjbFX8I kCN1hrUFDWCdfBuxRaJ6rZKEh9niAdraT5dyfT8C7BqzHVeG+7c29QdR+N9zyt9cMwr+ eZqexxG4YftGl1zqEwMiLZYYmMDJiqOgRg8+U94j2yeNhPCKKSha6a62U7Qz1fXrGntx 2HXvHoPoYUyo6PWN7iuQlnNQl05r3WtFoGG8yADQC/XeRZhc2Y61ZIa0JcgZm5fEPXmE ZQlA== X-Forwarded-Encrypted: i=1; AJvYcCVs9+k19Vu7GFF66GJexVgNtkcKIM8tsRFS/eq+JQ9YItr2tcFILBJX+cEoqMnwdrMMOQPp1JuCQj68b3+qYGyTN4SDPgiFXbuydcaNU28htS1xv/B1ty/mb4cyUtAPRNwj7JnSqSkO X-Gm-Message-State: AOJu0Yz0nfWstLbTJJAaqU8h5MeDp6DttetU+TdMonE5qiUfN9aJyXeY ClSnSKvetVxSxIYuBEykuFIsL20eN+BVDiCVHneGp3/6nemh5Gpa X-Received: by 2002:a50:d743:0:b0:57c:70a6:baf with SMTP id 4fb4d7f45d1cf-57c70a60bcamr2209722a12.40.1718003261044; Mon, 10 Jun 2024 00:07:41 -0700 (PDT) Received: from ?IPv6:2003:f6:ef1c:c500:ee59:d953:f148:40ba? (p200300f6ef1cc500ee59d953f14840ba.dip0.t-ipconnect.de. [2003:f6:ef1c:c500:ee59:d953:f148:40ba]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57aae13fff4sm7080982a12.53.2024.06.10.00.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 00:07:40 -0700 (PDT) Message-ID: <2d7164356496ab910bdbcac471f91d874b9e075d.camel@gmail.com> Subject: Re: [PATCH v3 2/4] iio: temperature: ltc2983: convert to dev_err_probe() From: Nuno =?ISO-8859-1?Q?S=E1?= To: Jonathan Cameron , Nuno Sa Cc: Petr Mladek , Lars-Peter Clausen , Olivier Moysan , Jyoti Bhayana , Andy Shevchenko , Chris Down , John Ogness , Greg Kroah-Hartman , Andi Shyti , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Date: Mon, 10 Jun 2024 09:11:28 +0200 In-Reply-To: <20240608190600.622dfd7f@jic23-huawei> References: <20240606-dev-add_dev_errp_probe-v3-0-51bb229edd79@analog.com> <20240606-dev-add_dev_errp_probe-v3-2-51bb229edd79@analog.com> <20240608190600.622dfd7f@jic23-huawei> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2024-06-08 at 19:06 +0100, Jonathan Cameron wrote: > On Thu, 6 Jun 2024 09:22:38 +0200 > Nuno Sa wrote: >=20 > > Use dev_err_probe() (and variants) in the probe() path. While at it, ma= de > > some simple improvements: > > =C2=A0* Explicitly included the err.h and errno.h headers; > > =C2=A0* Removed some unnecessary line breaks; > > =C2=A0* Removed a redundant 'else'; > > =C2=A0* Added some missing \n to prink. > >=20 > > Signed-off-by: Nuno Sa > > --- >=20 >=20 > > @@ -1296,8 +1268,8 @@ static int ltc2983_reg_access(struct iio_dev > > *indio_dev, > > =C2=A0 > > =C2=A0 if (readval) > > =C2=A0 return regmap_read(st->regmap, reg, readval); > > - else > > - return regmap_write(st->regmap, reg, writeval); > > + > > + return regmap_write(st->regmap, reg, writeval); > > =C2=A0} >=20 > Unrelated. >=20 > Otherwise updates look correct to me. Yeah, I know. It was simple enough that I sneaked it in and did mentioned i= t in the commit message hoping it would make the change acceptable in here :) - Nuno S=C3=A1