From patchwork Fri Oct 21 13:17:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13014805 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 86804C433FE for ; Fri, 21 Oct 2022 13:17:57 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 46EA310E365; Fri, 21 Oct 2022 13:17:55 +0000 (UTC) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 62AD710E365 for ; Fri, 21 Oct 2022 13:17:48 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id g7so5056937lfv.5 for ; Fri, 21 Oct 2022 06:17:48 -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=1/D4qDHVO5IdM0laM13WprByRR76iZC9J+lh31LipgrFBETsAedKH9RjoteScTBXYf rIuJPIwLnbuVX6jFiFTx+Fw9Yl+a5xAJLmuFowX04NrifpMgBm5SGzw1mxQt6sJfFsee xo5OyEpJ/b/G4D/nu/WUVtcjK3l1uF36yfELloIrgoxo0oV6K9rIG3Vbl0Twef9ZQNEB 4C4Ljc5WSmor7UT3AIEKz5ERGo4zvGjKdskQ/acHNJWaDvG3Pq+kNgMmuigYel1Cv12B U3M80KvD5BmVgFSaS+QP1zT067LYD9x1lZbDqoiKsHQyoXN6WjY4tKu+9Iix6itY/u9g Ui1Q== X-Gm-Message-State: ACrzQf39tZWLD2Spmztblnt7w/ki8avvKuNVd+hmSPgL0z0Uo+h8S3BZ Ci1gEc8zNsWWe4pi8me13GQ= X-Google-Smtp-Source: AMsMyM45sQCWIL00BKCqmckZv7XIyZNPhMuNPcqRjItA+8zp2cjZJgscTuO6QkpAf44MY1NK69uMIA== 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 Subject: [PATCH v4 0/4] Use devm helpers for regulator get and enable Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, Neil Armstrong , Jean Delvare , linux-hwmon@vger.kernel.org, Michael Hennerich , Jonas Karlman , Martin Blumenstingl , Kevin Hilman , dri-devel@lists.freedesktop.org, Liam Girdwood , Jernej Skrabec , linux-kernel@vger.kernel.org, Mark Brown , Robert Foss , Andrzej Hajda , linux-amlogic@lists.infradead.org, Jerome Brunet , Guenter Roeck , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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