From patchwork Tue Feb 22 11:11:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 545131 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31AB5C433F5 for ; Tue, 22 Feb 2022 11:11:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230290AbiBVLMQ (ORCPT ); Tue, 22 Feb 2022 06:12:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiBVLMP (ORCPT ); Tue, 22 Feb 2022 06:12:15 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F41569CE5; Tue, 22 Feb 2022 03:11:50 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: kholk11) with ESMTPSA id 9BAB21F43807 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1645528309; bh=SPtw+f0uHGh08y5gDzh4Xpm3f82+7RZ5orhUcUoZYGQ=; h=From:To:Cc:Subject:Date:From; b=Q8d20dSILE8ww4QUrdFkHqSYnNYsuq2cRc0b/Ej7cJTuNW1x35LEMn4ilzCqA1s7d Wb+puAdIWbkhmgsingHyjCFZfK+d4pMFANtEEE2+jdDKTm4P9fmWdYuIgjhhLovFY+ 8VICeT1K1kEl58iyJJ3/OQLFLftxktUV9u70O9sQsr5kQa+pIxc0uUJA5d9ioYCYbz ULJNq3jU2dLkfH9HRohBkB0H87jTrQydMIwV5n8X6Ntux0056ZvlK1VjJDonMIhgWx snMfsBfwgm5mM9CagkAoZlXcQEa/9E40mOBCUqB1hMlv+w3VTMstU52CadZc+wtQam UHLC0NmOQIwsg== From: AngeloGioacchino Del Regno To: sean.wang@kernel.org Cc: linus.walleij@linaro.org, matthias.bgg@gmail.com, linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, wenst@chromium.org, AngeloGioacchino Del Regno Subject: [PATCH v2 0/5] MediaTek pinctrl drivers cleanups Date: Tue, 22 Feb 2022 12:11:39 +0100 Message-Id: <20220222111144.20796-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Hello! This series performs some cleanups to the MediaTek pinctrl drivers by commonizing some functions (reducing code duplication) hence also simplifying the probe mechanism by removing unnecessary per-driver probe functions. This code was tested against multiple platforms. Changes in v2: - Patch 2/5: Changed -ENOENT to -ENODEV as per Chen-Yu's suggestion - Patch 4/5: Removed unnoticed wrong comment change (Chen-Yu) AngeloGioacchino Del Regno (5): pinctrl: mediatek: paris: Unify probe function by using OF match data pinctrl: mediatek: common-v1: Add common probe function pinctrl: mediatek: common-v1: Use common probe function pinctrl: mediatek: common-v1: Commonize spec_pupd callback pinctrl: mediatek: common-v1: Commonize spec_ies_smt_set callback drivers/pinctrl/mediatek/pinctrl-mt2701.c | 40 ++++-------- drivers/pinctrl/mediatek/pinctrl-mt2712.c | 44 +++---------- drivers/pinctrl/mediatek/pinctrl-mt6765.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt6779.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt6797.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt8127.c | 39 +++--------- drivers/pinctrl/mediatek/pinctrl-mt8135.c | 17 ++---- drivers/pinctrl/mediatek/pinctrl-mt8167.c | 40 +++--------- drivers/pinctrl/mediatek/pinctrl-mt8173.c | 29 +++------ drivers/pinctrl/mediatek/pinctrl-mt8183.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt8192.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt8195.c | 9 +-- drivers/pinctrl/mediatek/pinctrl-mt8365.c | 40 +++--------- drivers/pinctrl/mediatek/pinctrl-mt8516.c | 40 +++--------- drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 61 ++++++++++++++----- drivers/pinctrl/mediatek/pinctrl-mtk-common.h | 33 +++++++--- drivers/pinctrl/mediatek/pinctrl-paris.c | 9 ++- drivers/pinctrl/mediatek/pinctrl-paris.h | 3 +- 18 files changed, 164 insertions(+), 285 deletions(-)