Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1604765rwb; Sun, 14 Aug 2022 07:45:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR6PNpbO5sM0Af2wypBu47q775lpAysywQq7MCF6rt/E3DWX4vUvYnF5e2yjEDU2YOqTOJ5S X-Received: by 2002:a05:6402:270c:b0:43d:efd3:883e with SMTP id y12-20020a056402270c00b0043defd3883emr11470050edd.221.1660488306031; Sun, 14 Aug 2022 07:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660488306; cv=none; d=google.com; s=arc-20160816; b=utnes29Z3VmjdG5aRQLrsc41upRbVkO+ZsSR57zcPM16pf44iKd2L9M6kgCxoGRjNb j3KLFZmsAwqCTimaiQPVWnvrTzTqHzczF8e0DSm5ZSZK7QVs7/FoBAXKhlnQxOJuNPx9 DQ708VZgynQI/L/nAL3B8mD7ueYnK+mdDJZfeYzHV9yyq2NIm6oHpFbFAi09wnmkP63F ystsJN5sKLiDv/g+XrKyTFjBGRyXek8O5tMxDiBGgS8j/tDqHRWxYmQEhAbl7YTJ+eTt 3Pb2Bcm4vUQFcz46CjfmxXfI1oHcxsFkf7/8LIrHaPXtqXQhcYlARBOaoKaOEKMGBqin Iabw== 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=WBd4fGCbYZ+OtlCqxfD6Y2DTDE1hwSoHdtlBOhSmT/o=; b=X5X0XAxVmsHJOSwQUl7VAe/XUM4xlBP0OjxED6wVECs7vFM6PfQbpBsKiYvm0MMZPS EBPvT7fAnLT24n3YPAIqIqHo61MHebuYCHKOiIpzZ3LrDbuiHfTEDmyhn7ymOy2WUmWg SGYXyk0x2FEV7jtUAf6YUiHLYu0WlvXb7soBpPqt57etGgl82pf7hWkSAUQq/RMxaC5o EXXcLdos7CVmZ3bSLfMJlZe/N4bQxpm4Ow4j7A1JwtOcDYieyZwZzEJ3zEcXa+gRn4Az MZsFDwZiYhy26OJvuawMi0xBSUq+UZ4E3NQJRPG/7Nfg1GRzQFuuzC8sncym4x3rxQxy 7hIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iSkd0AHE; 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 d23-20020a170906175700b00730f0c17fdbsi5023771eje.458.2022.08.14.07.44.40; Sun, 14 Aug 2022 07:45:06 -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=iSkd0AHE; 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 S239727AbiHNOQ4 (ORCPT + 99 others); Sun, 14 Aug 2022 10:16:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231268AbiHNOQx (ORCPT ); Sun, 14 Aug 2022 10:16:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CADEDEB0; Sun, 14 Aug 2022 07:16:52 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 2556A60010; Sun, 14 Aug 2022 14:16:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C820FC433C1; Sun, 14 Aug 2022 14:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660486611; bh=uWoAq0ATnsOAbG/v53oGm0JhCatO2L0aeQdPfeB4Xq4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iSkd0AHEsGvTF3NAwh5S7pfgNAE0lLcMvw6t0e2OsTxnEJ+izG/hfM9whbO4dOxvZ tXRvMOQBCwFiUUIh6fNxUpl6VA4F9//fEuWOzW8k/bKb3RpgC1wft1QHsVaC+acxUg KJgP8evn/SXnJsWo0uDsvVjkzMe5MeoWayLRIY8JQFvtWn06dm+APxYLo8u7nHVXuE 3c1YRsHcOwRHP1ajdDLpigYcJ5aqVnhCnkWJhdG2aOvV5FItYGRe7r6J2ALDfEaUlh ta+gDC9PbF0NNoRzvapJ5Ox7YTdx0T262PsUzBbG4KntrBzMaejBcvsb2SAE+F6Oz2 OvVEKZ1XLRFEA== Date: Sun, 14 Aug 2022 15:27:19 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Marcus Folkesson , Kent Gustavsson , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-iio , devicetree , Linux Kernel Mailing List Subject: Re: [PATCH v5 4/9] iio: adc: mcp3911: use resource-managed version of iio_device_register Message-ID: <20220814152719.17597442@jic23-huawei> In-Reply-To: References: <20220809073648.167821-1-marcus.folkesson@gmail.com> <20220809073648.167821-5-marcus.folkesson@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=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 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,T_SCC_BODY_TEXT_LINE 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, 9 Aug 2022 11:40:55 +0200 Andy Shevchenko wrote: > On Tue, Aug 9, 2022 at 11:39 AM Andy Shevchenko > wrote: > > ... > > > You may rather switch to devm_clk_get_enabled() and drop this. > > While doing this I would recommend to split the regulator case and clock case. > Hi Andy, I read this and wasn't quite sure what you meant. Do you mean splitting it into multiple patches? If so I think that is probably taking "one thing one patch" a step too far. I wouldn't object it if were presented as separate patches, but I'm not sure I'd bother splitting them. Definitely good to switch to devm_clk_get_enabled() now that's available. There is another go at adding devm_regulator_enable() under review at the moment, but we can tidy that up as a follow on patch (along with the 100s of other cases in IIO!) Jonathan