Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3019427rwi; Fri, 21 Oct 2022 10:28:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4m1itTACotYlN3r9Wvhd1V3jvy/UUwcDFTdelmeROniy6myxP5TFwKsyTzzeT5ItM97Fl5 X-Received: by 2002:a17:907:845:b0:731:2f6c:6dbd with SMTP id ww5-20020a170907084500b007312f6c6dbdmr16324323ejb.551.1666373286282; Fri, 21 Oct 2022 10:28:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666373286; cv=none; d=google.com; s=arc-20160816; b=yyhrwVYVdjLCnweSSjjLVixumamVrEZS3HM0zawBL7EyxMoUjXwouvQ8iS50GoAI2l 3bZzMRUfuz+pPCf/jo3fT4iD7Kr5Or9jP2U4tICkrIRFQexQBE4nJXzjv3fWzKjhUBgb vFCYu8ZAnkJvUEbUw4/rqnmLyDUmYmvVEH7J6JHcX88gA7Cl2cS1o2Gy8kOxAKptP4qW iyux0SXGx+mtUay9Pxc5yuG2ypcOH5NU+EXad/K6FdOlqQTt80f9sUdfGL0Y0o2dalad Y3+0w45Xs+tiKDxtn9/BW/+RZO78Mz5NtAbeg87+HLVnf2o1DNF/sS3YAT9STO0vuNUc Ln1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=zlHj7n3i5o3yXLa4ETHRTpxvwrBu3YafH8lL3TZQo7c=; b=IPUuIX+Jej+d3o0AJnOKNKF2eJxLnyKsViQn1zNK5BeYL+DQLauIZHaxu6eoCjppvi xJf3VXodLzAYXVsqGE18jpjqwfq09MzP0FM7AyhNlc60p0PNxVXLc+3Qwda8IlkQseCf QOPGpbdcqV7Kjda3E3QqE/6rkVJjRcph5QpYu5VFVuFp7gLxaq11/emcJuVZorTaPSQy onquW8VL0Dq0qlcHkSKnrfSjDUiBj7vLH0+IT3DBMzcFwhKWO26ta21kM+3rPQSYND2K ALnrakX6xOb3MZqIRCtCmeofKV/VTY3offqHwdESHagekS5kbaOtNrEI50v64NI/i2R/ CdcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=mfKFX0fS; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd3-20020a1709069b8300b0073ffabc3352si21300946ejc.836.2022.10.21.10.27.40; Fri, 21 Oct 2022 10:28: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=@gmail.com header.s=20210112 header.b=mfKFX0fS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbiJURXD (ORCPT + 99 others); Fri, 21 Oct 2022 13:23:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiJURWz (ORCPT ); Fri, 21 Oct 2022 13:22:55 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FE971AD687; Fri, 21 Oct 2022 10:22:54 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-136b5dd6655so4373817fac.3; Fri, 21 Oct 2022 10:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=zlHj7n3i5o3yXLa4ETHRTpxvwrBu3YafH8lL3TZQo7c=; b=mfKFX0fSUZxTyWGet7HLjN5KSNIIKvyVtQYoZsLLgdG68Yakqkgp2WJCOVzeO5GHCh yANi9hjw5ikEB67N8ZxxJKlfSvDFlB1pwODfttxygGfSi0EpBEzaL4U+q9EnKkXB8zM4 Kpy3knTJtufMaIDXCnTxfQ5ityhf0XE//ULX0EfgX5moVheH0+IlYH7rFaVYlw7h1IZC f3hvRzN3Is7mdZ6SjqQK+HqlYEc7b/vJJi/DHEaOZ5SLMYgzInSE2cZqQCd6vFovU8W+ GC/OSC40v6iY2wHSha8o+Px7g7bYjOTCm+V4YkcfWMW6rmsOzqVXzjwkL/eK9USq23tn RQKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zlHj7n3i5o3yXLa4ETHRTpxvwrBu3YafH8lL3TZQo7c=; b=yNI6KRowwxaQ0yJs/KYbnTOdXOBbqJlzcJFFQdx3AZ5iot5perE4goOSpIXE4gOSUD nLAZAYby/l+Ih0l7rY1SS4hz604r3I81wWL/2gQpB2JvG6uOJLR3AiPGmdrSmcBJne4s moWSDeiTEbDstLLeq/Ti3GUngrnvc8FARSi67pBewKWqEJI4btcR6iHU6fbHsAzFlJ5R ufXdx92wOwvGmB76LUkDQ4NQ5KIZ3djJIg4Fa9Nxs0LP7a9id1mnTiwWEmNvenm9rx9Q wE7OqAXTa+4lW1P+Wm3FTL1obDznW9rEwiUECpZ4wZxehl5ry7Z5rK1U6qqctUKUpu/B yl8Q== X-Gm-Message-State: ACrzQf0qzyUs5+ucY6CtJyCkvyZ6G2ZiV3wetEL+2LjGcwVtCO8kh9o8 L5rOKM2JuEYrNTQ5FdmO0h0= X-Received: by 2002:a05:6870:2427:b0:13b:1f89:ab27 with SMTP id n39-20020a056870242700b0013b1f89ab27mr3799543oap.20.1666372973425; Fri, 21 Oct 2022 10:22:53 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id em40-20020a0568705ba800b001226d2100f2sm10482749oab.33.2022.10.21.10.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 10:22:52 -0700 (PDT) Sender: Guenter Roeck Date: Fri, 21 Oct 2022 10:22:51 -0700 From: Guenter Roeck To: Matti Vaittinen Cc: Matti Vaittinen , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Michael Hennerich , Jean Delvare , Liam Girdwood , Mark Brown , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-hwmon@vger.kernel.org Subject: Re: [PATCH v4 4/4] hwmon: adm1177: simplify using devm_regulator_get_enable() Message-ID: <20221021172251.GA1891003@roeck-us.net> References: <7773541795f280db31dd981ffc21df8a630b794a.1666357434.git.mazziesaccount@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7773541795f280db31dd981ffc21df8a630b794a.1666357434.git.mazziesaccount@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Fri, Oct 21, 2022 at 04:19:04PM +0300, Matti Vaittinen wrote: > 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 > Acked-by: Guenter Roeck Applied to hwmon-next. Thanks, Guenter