Message ID | cover.1666357434.git.mazziesaccount@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp701404wrr; Fri, 21 Oct 2022 06:35:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7A1qx273B/0BmWZM+47eEUoZQ+j9OiZJZuWg72Kdj+0wJtLRezR1ZT4Q97xcicIdm1PK17 X-Received: by 2002:a17:90a:4588:b0:205:d605:8bcc with SMTP id v8-20020a17090a458800b00205d6058bccmr22452795pjg.205.1666359311881; Fri, 21 Oct 2022 06:35:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666359311; cv=none; d=google.com; s=arc-20160816; b=RuRlH3ld1KWK2ddoCf9uEMn7tIcITyREtx7A2mwGJyKt0EMAM7FCoogBaV8G8cKp4P zc2G2obDvC7NQgpJZxel91WfMolNQzVSbGST92wm5IeTbZjD/S6SmZBSBy0Ny0kN96ar RGrlUEJOnilip9aB2jqgXhx+LnEiY3hytokz3Y3IfsNnMjfbVbKf91CfDXdhP1lt5nbr rFrTvIsbCemV+/QJre+N5Ql2mcsTYksEiQhpk0yiHEa4RdmTnI32a+l8gaS7mB9nA70V Etw3NhdNVXSHPcZNAdMFFKa74FLw3UYK+bSlbE/qbCyKRUf8oRPK6rbYwMPIsJgsUK0x C8Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=L6OsdhUjW7L1QAZe7IfDCMt4jC7eaRPds2f3xTvTcWM=; b=K+1M6f83G4XBzRA4iKg0KJa0SgGeAuQg0gatsgnHaIfSMG+Pew1A7O9JCuOlFm7ISi Y5kWZaKH891ExKf+AUoK0DSUCrHpgEkWQm7g6boY0SxhK3tQiGVc6o85HlsSbZDLoZk8 g0Q1o5aYVyS4gsPtRawP+R17M1hqYFh0NejTfappGFGdU2kqg9x8CgA5/0BMLbVG1xHb 3bMIHihxuFBpstg+LEr6gJ8zWNBiZEMvKLFKTTgNtrrvh8cDtJJE18rHetc+NRGIYw28 UlsypYC7AXWXbgIcmNY4VijW4YTfkPgpMF4lIwB0F5cN6c+FXodagiRXl6ZN35FfBSO2 px1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NvXmRpLE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a170902ca8200b001841183dc30si20539265pld.563.2022.10.21.06.34.58; Fri, 21 Oct 2022 06:35:11 -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=NvXmRpLE; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbiJUNSW (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Fri, 21 Oct 2022 09:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230472AbiJUNSB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 21 Oct 2022 09:18:01 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE3DB26D92B; Fri, 21 Oct 2022 06:17:49 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id o12so5037005lfq.9; Fri, 21 Oct 2022 06:17:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=L6OsdhUjW7L1QAZe7IfDCMt4jC7eaRPds2f3xTvTcWM=; b=NvXmRpLEwW15x4sHw8WsKT9UISkiiOEvlUYJsc3+jtM5BAz28eKD5C8fMmm2QEafXQ i9Iymyq6iBLiS2ccEq8b6W4IZS+Fcyjh3rsbLHN8wSvQqAm0yVLSqzl/PEHgfYYRahJ3 +VHk7QCBW1774fIlJrdE4xfOUNzoRqGKay+NDBvJhMBd0RKK3fGvl+tJc6sde66KVPn6 COZB2dWm/yBfpCIsUh6m48vuO4BKIL6Her8uuHef5YkURs86J2WBWpDGrbC+sfsF5PgG 1pArS5cCtKAg/1z/HAdiHw6TnEj2cr/FKxFi/isKtdBv2owKM/6Bp7OR5xmT8lbSkgV0 vptw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=L6OsdhUjW7L1QAZe7IfDCMt4jC7eaRPds2f3xTvTcWM=; b=ocKWb2UYNo4j12omz5rpneYUzbDhPGSz4O9aK7S/26OqMszvk25Ewgsc/q/WM3qeOU n1jO7PQ6QCLJuDTlzw90GRQB1aYEixKYLBqa3Ua1idHJ59CxcvXTWz5af/VGSddpNq4l aiazu+H45Upe7vaZcm80bGtNIO7cZdxcGDmZ70xTVmSY0EwghL+1X+urpp8au/r3JdWr vX06ifOd6C739RD59s80f5xCLRF7XVZfoqHIxskSq+r1pPNz+u8AjJjtDIKSnuCJxW26 5KbCLFD2ARSEGX0UOev4U0h11iSYAjsNi1HUgzUAEz2ZNEPTkXEUr/dCUvg2o1VPBhj8 7ccA== X-Gm-Message-State: ACrzQf10nJQWvW056b9g6uarn7wTA09+9buh89N9fVfzQT6Gn2ArMnuJ Hfl3lijN6g9E94Dqu0xZDZw= X-Received: by 2002:ac2:483b:0:b0:4a6:f5d3:dd07 with SMTP id 27-20020ac2483b000000b004a6f5d3dd07mr1723500lft.233.1666358266558; Fri, 21 Oct 2022 06:17:46 -0700 (PDT) Received: from dc75zzyyyyyyyyyyyyyby-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyyby-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::2]) by smtp.gmail.com with ESMTPSA id m7-20020a2e9107000000b0026fb4d20636sm3417298ljg.17.2022.10.21.06.17.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 06:17:45 -0700 (PDT) Date: Fri, 21 Oct 2022 16:17:37 +0300 From: Matti Vaittinen <mazziesaccount@gmail.com> To: Matti Vaittinen <mazziesaccount@gmail.com>, Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Cc: Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <neil.armstrong@linaro.org>, Robert Foss <robert.foss@linaro.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Jonas Karlman <jonas@kwiboo.se>, Jernej Skrabec <jernej.skrabec@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Kevin Hilman <khilman@baylibre.com>, Jerome Brunet <jbrunet@baylibre.com>, Martin Blumenstingl <martin.blumenstingl@googlemail.com>, Michael Hennerich <Michael.Hennerich@analog.com>, Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, 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: [PATCH v4 0/4] Use devm helpers for regulator get and enable Message-ID: <cover.1666357434.git.mazziesaccount@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uZtN7dB4zT5zFsmG" Content-Disposition: inline X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747304381377933810?= X-GMAIL-MSGID: =?utf-8?q?1747304381377933810?= |
Series |
Use devm helpers for regulator get and enable
|
|
Message
Matti Vaittinen
Oct. 21, 2022, 1:17 p.m. UTC
Simplify couple of drivers by using the new devm_regulator_*get_enable*() These patches were previously part of the series: https://lore.kernel.org/lkml/cover.1660934107.git.mazziesaccount@gmail.com/ "Devm helpers for regulator get and enable". I did keep the patch series versioning even though I changed the series name (subject of this mail) to "Use devm helpers for regulator get and enable". Name was changed because the devm helpers are already in 6.1-rc1. Also, most of the patches in the series are already merged to subsystem trees so this series now contains only the patches that have not yet been merged. I hope they can be now directly taken sirectly into respective subsystem trees as the dependencies should be in v6.1-rc1. Please note that these changes are only compile-tested as I don't have the HW to do proper testing. Thus, reviewing / testing is highly appreciated. Revision history: v3 => v4: - Drop applied patches - rewrite cover-letter - rebase on v6.1-rc1 - split meson and sii902x into own patches as requested. - slightly modify dev_err_probe() return in sii902x. --- Matti Vaittinen (4): gpu: drm: meson: Use devm_regulator_*get_enable*() gpu: drm: sii902x: Use devm_regulator_bulk_get_enable() hwmon: lm90: simplify using devm_regulator_get_enable() hwmon: adm1177: simplify using devm_regulator_get_enable() drivers/gpu/drm/bridge/sii902x.c | 26 ++++---------------------- drivers/gpu/drm/meson/meson_dw_hdmi.c | 23 +++-------------------- drivers/hwmon/adm1177.c | 27 +++------------------------ drivers/hwmon/lm90.c | 20 ++------------------ 4 files changed, 12 insertions(+), 84 deletions(-) base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780