Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2662798rwi; Fri, 21 Oct 2022 06:35:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5z1BEkriS2usendHgOR4X4zy8HTAeAVxVKNnLOR+OjJJMVPw57BTDprk8LxxbylpcKM0rF X-Received: by 2002:a17:90b:3b88:b0:212:d5c7:8858 with SMTP id pc8-20020a17090b3b8800b00212d5c78858mr2133974pjb.151.1666359338899; Fri, 21 Oct 2022 06:35:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666359338; cv=none; d=google.com; s=arc-20160816; b=VRFO7dqpb3mPDKWiz26HPXfTEoJ9BWml5tNjyJaDxXe6ftUW64vvc3EZQmF0lIEtev /XuZxGioM/dUjsYlhkmx9YKwnyzfXkTV6rsJSybppjtpZkDjXXi16/h0vDWBTkowoIVS xJKJdDfA9I9q+fVsTioaIvtnPFjM/OnLGvvOMK8dbz9aTeP1uWBpnhdxPHZ3mAwOen8o hfDoDoqvOQ4YVMVUN313o3nL6ZZb9fI7wSXoB0cT3+S/7a6ZGlbw2Y4dLUgSE6mWKhZ/ Dh5fPChJopnzDNUqErKjScLX/40mO7qdHyg7vpDh1DyOeXZB5MQJKcHaELpLQc6YfFpt 9OWA== 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 Return-Path: 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.35.25; Fri, 21 Oct 2022 06:35:38 -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 + 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 ); 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 To: Matti Vaittinen , Matti Vaittinen Cc: 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 , Guenter Roeck , 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: [PATCH v4 0/4] Use devm helpers for regulator get and enable Message-ID: 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: X-Mailing-List: linux-kernel@vger.kernel.org --uZtN7dB4zT5zFsmG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D> 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 --=20 2.37.3 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --uZtN7dB4zT5zFsmG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmNSm+wACgkQeFA3/03a ocUk8wf9GPfjBtyvD9zhemcPtbAvMi1mDRXVTeferJLMfZOaxAHzotYu/L1BsSmr tHKDT7ApHkeVbmnnc9jzIb1g71n9qBPkNWj5fsXkYMLrwv8ngU9OVZjKSXj2du+n hpc3j+0OLO4v8KYQN7wcHo4vyINm/3xXwoiKDAm43IWja45PBti+r8V3WvtiVf1h GWPmS0ZiU2imPdmNSnOxVjh+1EtNDMQlFDu/Fv1dU2MYuLZAM6bkJfRs9gYmu1w9 RvKW1HEEk2moacyue7LVlseaa2Y38togIUAYEy5Hz/h+MqZPEuE1KirPlrW7/6wP TVYakMaJuld2nhQS8hIce5Tuds4jsg== =wmbp -----END PGP SIGNATURE----- --uZtN7dB4zT5zFsmG--