Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp318857rdb; Sat, 27 Jan 2024 07:48:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF4Zx6QqrJT03ExMrXDfrRg4UMfZRoU+9VIBCBOmQG7PAux/Z0GXE97q9nWM8SXDWsg4jvh X-Received: by 2002:a05:6214:29ea:b0:681:997b:7f57 with SMTP id jv10-20020a05621429ea00b00681997b7f57mr1298021qvb.84.1706370537483; Sat, 27 Jan 2024 07:48:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706370537; cv=pass; d=google.com; s=arc-20160816; b=m0U6v4HBouYgZbQDdAUhgZ1+pPi4TsPshhrJqgYISwJaxjABAHs8LdXtU2Itw5jr/q DMJroupZSIWkuqnUqulRluO1xU+UGieL+prD1LWArI2CbgWTH6X3DlXCWotxe4s2e/nW fsW6NAFnpixXi6hdXJdLaHhdNRXgULh/D5e9yJp1DRjPDaNPYVaZmTzkQ7G/3IPNWNCJ g4BXcsiG9HjTVu4AuKKgb5tu30DS2sFTuzlEx9VUsqmvbP8mVBLZWo+e63v7ldE6M5wk O1i9OSaiAXJW6/T7LwVG+TBTbKtuLF1TsKASsQMJUgXJL1UNfKm95lKgegOe+KFit9Eo czcg== 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=ddL9PkpkUjmgw+uFhmwg7X3GaCeUH9w80NqkG6B2Ki0=; fh=ni2aJvIpVQICtnwA2j0kIq6C5vXT0HCdTke5iCa+nks=; b=RJ9CeDIkqHxZIpWEEVqm8c2ym8v3kBPcx79kTDG5rrQSe++HO4IgRUOIHx+14wFYCv kCCdX9jq/8cy/7HujNzC+zGz8UDgKT8PYwgHrHfiURBNvhpUCS6lSRoHr7OCAb7Mh2lh KY09oSWb7uF5tDTxzFIgNlcT5O0YmPK7o6RwlIVp63+0xKveZ3O8XGsBkJ2Sssf7zL8n VwxmhladtEbqUkGPLk0xtZEWpJc2fIx/rpy/+g/e6kSW4BtGECxJYLc6UKI3lYt5F718 IZAbgcjlywCIJPC4aCwDI93UOWeAkpF10LHr7v7z1aiLF3gxxftmir1L6f8+uhs/8raF Ib1A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Mp4N5V47; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41255-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 kc24-20020a056214411800b0068170e72546si3674840qvb.159.2024.01.27.07.48.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 07:48:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41255-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=Mp4N5V47; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41255-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41255-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 431D81C21538 for ; Sat, 27 Jan 2024 15:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D74F2941E; Sat, 27 Jan 2024 15:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mp4N5V47" 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 6785728E0D; Sat, 27 Jan 2024 15:48:49 +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=1706370529; cv=none; b=QoD7vX2hiHGXd/xyJseNQbGaH/Fmn+L84NeMrRXwH/yiyG74TDMikCeAdqE+0Yrtv5EoYUvRxsysl2RFIW1XF1iWxFdA4s+X18EsRMRxxGfkni6OxW8yiLilgcQi58XDzq+wbBrcqoLwYGf1ivLUElOF2S+2JSr2ymwUgLLJCd4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706370529; c=relaxed/simple; bh=6CXq4Rt4QMBMD4/zjKHeRa1y6dixk2tNS4/vGYDiNrA=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uqo4JyHMiX3Z/Q1d+KKk7I3lE1Liq6eei2WfPEnGGac6ALZbfycyX1pFb3goQCHgPF2jRB3R/4Kkc0vaS1Pxlb7t45/hNnGHZGCjmx/Pie5L2Da78PBV76X6T4KFMLt2Y6opJrhRl75eEz3aIV8n0LJ7F6yVHOCB2UbYNJTjPzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mp4N5V47; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A43DFC433F1; Sat, 27 Jan 2024 15:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706370528; bh=6CXq4Rt4QMBMD4/zjKHeRa1y6dixk2tNS4/vGYDiNrA=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Mp4N5V47GiY9uNd4/P6igePZ+QY56uxETxFT04gUBd7WxrYZd6h5VGS+2mNqD4sZ/ ga63x58+mkIt+Cd2OLcoeki8yUxyBX3RkKfMQ1zdOwLtyOHK7wtJHTNonZm2JMjle6 eJpy5PVi1MBLpRJo6L/V6kqNxVN8Qbb+aY1pNzmw6oIx5bWEYu5gpE2H9TCUz3poC/ cJWOvsIGM1+fDUfgds3+bDLxelIs4onFnhOrQa6FflXCogmL6b+58OemUllcViQNuW ipj45CWIUt7pXK7jH5yLVPrOfVCLWE453+e4xUd5c+8QTlhtRPX/KSQbBMAEs+gnT6 n9RJXyPzRwXKQ== Date: Sat, 27 Jan 2024 15:48:36 +0000 From: Jonathan Cameron To: Andrew Davis Cc: Lars-Peter Clausen , Uwe =?UTF-8?B?S2xlaW5lLUvDtm5p?= =?UTF-8?B?Zw==?= , , Subject: Re: [PATCH 1/4] iio: health: afe4403: Use devm action helper for regulator disable Message-ID: <20240127154836.153127a3@jic23-huawei> In-Reply-To: <20240123140918.215818-1-afd@ti.com> References: <20240123140918.215818-1-afd@ti.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; 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 Tue, 23 Jan 2024 08:09:15 -0600 Andrew Davis wrote: > Use a device lifecycle managed action for regulator disable function. > This helps prevent mistakes like unregistering out of order in cleanup > functions and forgetting to unregister on error paths. > > Signed-off-by: Andrew Davis Hi Andrew, All applied. You could make use of dev_err_probe() as well to save a few lines if you want to (as a follow up patch). Thanks, Jonathan