From patchwork Wed Nov 16 13:02:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matti Vaittinen X-Patchwork-Id: 13045184 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 6D397C4332F for ; Wed, 16 Nov 2022 13:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=lITccHnWPLyfyk6sLWc85Y48lucWHnTHAxPH/XBKAG4=; b=mOG uJtclpjQQoYiJCeXh29BcALkhZotmYPDAR5VfWmeXQYde+4zMz9+hHcoi804XB1olIkm0SdALJZI9 qfdleneA2YWHMoSKYR04VKLnd2/7DhlbJOp36aKipGGrjgWZjqg6Z2M4uXns8HflA7p7PlJ431blL KIfCl5ZxHoXkX8xCkS+f6uklnMGQSFuK04d15HQOUXlSxjmu5aiAsjeBS8+ATnyXFFFyExaGqtMe3 gJEap6TuEqaSezlRPzxNx6qPneOQ7xmmnQhUfvleqRKM2hEFU/asrNyhR7aVWwFUqiP13CGoutjLs BraIu6ac05s8NuMtXa8q2DDqw+av5vQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovI4U-003ee0-QX; Wed, 16 Nov 2022 13:03:18 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovI4R-003ebc-8r; Wed, 16 Nov 2022 13:03:17 +0000 Received: by mail-lf1-x12d.google.com with SMTP id d6so29348411lfs.10; Wed, 16 Nov 2022 05:03:13 -0800 (PST) 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=yj1uHK7HEYHiWFNEA4c6ztqJMkzjkf4XEFeM+LwxtIg=; b=DQqtzDKWBRTTXrTN9hNrp+mtDefk1sMRvbwnlYah2vXNkxG9puls0fYPV+phkNSdFW tlfwHOcvpqNA18GculZlgXIGwceB/LVIJlVMRIf8G1z0/6CGdTd1VWLUJMsP4tZbVaFS YLYSNYLsZBmUxGis5weeBHTPBW+KWHEhG0hF2k8uXZvRiX1phQBxlAweebBbn5MCDYAf KZPP80JcWP/6zUqVaO2p3aC7OvanvwK1xmSQBsThqwNsfFHpRKEniRUyASzYJsX8VafY I41RtTe4Vq1DAUdY6ZsZlHmgB3Vh826+JdSXO14quqCwX6XhtZeOtni3R+MY5QkXtexS KV0g== 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=yj1uHK7HEYHiWFNEA4c6ztqJMkzjkf4XEFeM+LwxtIg=; b=GGjg++BtTeZ6X3BDqKoRxF2yNjIwrQOo70sqQKj8XKuC7qiNomAsIMAVxvgv4FstRF rjCa5ItJ0sGZDBJOf/Hkn5Kge5em4WMtOC7hZFd/MhwYzQWFCwcpQxPQPegKXyFVqcwg hBb4gN0e5HFZIL7uE44+XB5GPF1VEMZjVdVBrfGG/eimdeCjAhB+gulE3yeC1IPg9iQg onO0tJ5JoWdfOU5+dyOsHm5WjHXuJx6EYFKCk741tTUEJLhvaiEhX9yKVJMCHpsDXSxU sl4I0hWvormxTKNj9hAHcib2Qsv4gR2JXnUguYDaSk7/I0q8jKsIIXqle23sZlrOdhEL 011Q== X-Gm-Message-State: ANoB5pkXsiNFZy8n3VGi7sETA4fX9NvqutX333+/C3mapRZQhARjCUFF /FuSrMuE4TKxDj2znrUkKEk= X-Google-Smtp-Source: AA0mqf7AzfIzexM2z7u+Uqd3EVkiLAzQw1oHH8gedmcDfckXG3tZna2CfFK4Bwj1l2ZwJnkRNoljSA== X-Received: by 2002:ac2:55a1:0:b0:494:9680:5036 with SMTP id y1-20020ac255a1000000b0049496805036mr6845823lfg.416.1668603791679; Wed, 16 Nov 2022 05:03:11 -0800 (PST) Received: from dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi (dc75zzyyyyyyyyyyyyydt-3.rev.dnainternet.fi. [2001:14ba:16f3:4a00::7]) by smtp.gmail.com with ESMTPSA id r18-20020a2e8e32000000b0026c4305e5e2sm3002831ljk.53.2022.11.16.05.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Nov 2022 05:03:10 -0800 (PST) Date: Wed, 16 Nov 2022 15:02:41 +0200 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: linux-arm-kernel@lists.infradead.org, Jerome Brunet , Robert Foss , Jernej Skrabec , Andrzej Hajda , Laurent Pinchart , Neil Armstrong , Jonas Karlman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Kevin Hilman , Mark Brown , linux-amlogic@lists.infradead.org, Martin Blumenstingl , Daniel Vetter , Liam Girdwood , David Airlie Subject: [PATCH RESEND v4 0/2] Use devm helpers for regulator get and enable Message-ID: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_050315_334192_57BDC0C5 X-CRM114-Status: GOOD ( 14.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Simplify couple of drivers by using the new devm_regulator_*get_enable*() Found these patches when doing some clean-up for my local git. Seems like these two fell through the cracks while other were merged. So, this is a respin of subset of original series v4. 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 (2): gpu: drm: sii902x: Use devm_regulator_bulk_get_enable() gpu: drm: meson: Use devm_regulator_*get_enable*() drivers/gpu/drm/bridge/sii902x.c | 26 ++++---------------------- drivers/gpu/drm/meson/meson_dw_hdmi.c | 23 +++-------------------- 2 files changed, 7 insertions(+), 42 deletions(-) base-commit: 094226ad94f471a9f19e8f8e7140a09c2625abaa