Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3365473rwi; Sun, 16 Oct 2022 09:34:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Pgm1ajzayapeZD++eANlqdCYwR1eEbjGZQasUlno2L00eo6z4q/c9Yz0w0l3lcXobKvGA X-Received: by 2002:a65:6e82:0:b0:41a:9b73:f0e6 with SMTP id bm2-20020a656e82000000b0041a9b73f0e6mr7242082pgb.371.1665938069316; Sun, 16 Oct 2022 09:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665938069; cv=none; d=google.com; s=arc-20160816; b=LACE5qIGPkDIl1zhOXZgp9nJrawaB8I3A4GV6v7EX01mMNGdeH3fl9PYEPjN8zR3g2 2eTgY9kKmVEyFdAMWhLu7Tq0A7laFYMpKPCWFmtIbtxxZpnVkmwfCYAwZKn5HC8p4Dj8 J7nYfi0d86mKnk9RNU6ztDDETGzF/cDwKcu4/adxf3XEBl/1aTF2MvPLi91yCyK4dDZ2 YCz94y3CyAYkxc25qTYmDOrlvbq6mbU7A7MbcUM3WGLCMt71PEzbR9botDlJgJPQEpVr wPdbdUBdA9Iea8wgN+CuRSlUrDIr3p75yQoSCo7HP82pq8Q6K9aZbcDzr/RmxbT9O4jn PjCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=vY+WGb+Kp42Bg9TPyS5tLOMJfqT2e3CmdXwAmhc8T/Q=; b=qpA2zzHJyVGf94E0ZMLbaVHm0FqAixN6Ei6DxIalPaeQccaef/uHn/+JeQtScVPSpx Iyc0q3+tdCmbIo1xx0qXyE5FSEHl1fJQ8SzGXqo5rmgYmg9nqOCDZdmA1irmXaQWiS6V W4YnWzG/GmbLKC27Px5xwHMzFWV4jYWMSNIi4zpYEP1Gi/jpatHWT6Lfl1AVX3VFLvBy YxMjyMgxg380JifJ/QhUuqyc9W4VswqmFJ+7EHwkDYs7fbss+QboDlOS9M6O3zyPU+xP /joiKWHUzmbEj6/zJluesIMcowfzDst2zgu//ESSU2k31SnZ7JBJ1flWZYoyb2NiL8dX Im2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEJaXWhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q24-20020a656a98000000b0040c99b681a4si9293142pgu.23.2022.10.16.09.34.17; Sun, 16 Oct 2022 09:34:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nEJaXWhh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229770AbiJPQPM (ORCPT + 99 others); Sun, 16 Oct 2022 12:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbiJPQPF (ORCPT ); Sun, 16 Oct 2022 12:15:05 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B13B15A33; Sun, 16 Oct 2022 09:15:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 8C0C4CE0B75; Sun, 16 Oct 2022 16:15:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1AF06C433C1; Sun, 16 Oct 2022 16:14:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665936900; bh=x3CwrcunJNuG98FQOYXz8XlmpGAm0KMCZ85BHWC6tE8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nEJaXWhhd2AbXxqTB/M3bbJkH+pMZqcec9yhNtf8IaI6Zn1gGTE/tK20yBFZWBHqb GOITFK2LHrHlOwmtkhIzIioUzZNViQvXaOK88LFvZLU2SqGZElO2e6GwNKwLJCvbJS pqT+gyW+R3UqcYSutZand2saPmIBsWe3yNAnjm3ND1dvAE1osvSAqNiwxX2aPahYU2 LuxRP4hR7GkHEalI62xPxkzqmECdRy/HLgPI93Ld3WcKoq7bG0QC/c9i1KTRn78AHA DqMik2H4GbUi6MPDi/Ql0Pj47+KILZjKfarosKN8PuP2vGnIogauCpMZNZz57/wAGG n0rWeBRoALFRQ== Date: Sun, 16 Oct 2022 17:15:29 +0100 From: Jonathan Cameron To: Matti Vaittinen Cc: "Sa, Nuno" , Matti Vaittinen , Lars-Peter Clausen , "Hennerich, Michael" , "linux-iio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 11/14] iio: ad7606: simplify using devm_regulator_get_enable() Message-ID: <20221016171520.07506844@jic23-huawei> In-Reply-To: <0aaeb018-94ba-eaaa-4000-7ad082a09850@gmail.com> References: <521c52f5a9bdc2db04d5775b36df4b233ae338da.1660934107.git.mazziesaccount@gmail.com> <0aaeb018-94ba-eaaa-4000-7ad082a09850@gmail.com> X-Mailer: Claws Mail 4.1.0 (GTK 3.24.34; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Aug 2022 15:54:07 +0300 Matti Vaittinen wrote: > Thanks for the review(s) Nuno! >=20 > On 8/30/22 14:46, Sa, Nuno wrote: > >> From: Matti Vaittinen > >> Sent: Friday, August 19, 2022 9:20 PM > >> To: Matti Vaittinen ; Matti Vaittinen > >> > >> Cc: Lars-Peter Clausen ; Hennerich, Michael > >> ; Jonathan Cameron > >> ; linux-iio@vger.kernel.org; linux- > >> kernel@vger.kernel.org > >> Subject: [PATCH v3 11/14] iio: ad7606: simplify using > >> devm_regulator_get_enable() > >> > >> [External] > >> > >> Drop open-coded pattern: 'devm_regulator_get(), regulator_enable(), > >> add_action_or_reset(regulator_disable)' and use the > >> devm_regulator_get_enable() and drop the pointer to the regulator. > >> This simplifies code and makes it less tempting to add manual control > >> for the regulator which is also controlled by devm. > >> > >> Signed-off-by: Matti Vaittinen > >> > >> --- =20 > >=20 > > The commit message could state that while doing the change, dev_err_pro= be() > > was also introduced. Bah, anyways: > >=20 > > Acked-by: Nuno S=C3=A1 =20 >=20 > Good point. I have few other changes to the series pending - and I=20 > probably need to rebase/respin when -rc1 is out (and dependency patches=20 > are merged from Mark's tree) =3D> I may as well alter the commit message. >=20 I tweaked it and applied. Not I'm grabbing these early because I forgot you'd sent them and found myself writing the same patches. Memory of a goldfish :) Jonathan > Yours, > -- Matti >=20