From mboxrd@z Thu Jan 1 00:00:00 1970 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 smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 56301C433F5 for ; Mon, 14 Feb 2022 06:09:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DF6B560C23; Mon, 14 Feb 2022 06:09:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P7PssTQeMs9G; Mon, 14 Feb 2022 06:09:04 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 99CC460C09; Mon, 14 Feb 2022 06:09:03 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 7A24BC0011; Mon, 14 Feb 2022 06:09:03 +0000 (UTC) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id EC1F7C000B for ; Mon, 14 Feb 2022 06:09:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id DACA860C1B for ; Mon, 14 Feb 2022 06:09:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G4nCzLHWuhaV for ; Mon, 14 Feb 2022 06:08:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by smtp3.osuosl.org (Postfix) with ESMTPS id ADC4460C34 for ; Mon, 14 Feb 2022 06:08:56 +0000 (UTC) X-UUID: 8b968aa29df746e2abefbda71ce08e89-20220214 X-UUID: 8b968aa29df746e2abefbda71ce08e89-20220214 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 748286038; Mon, 14 Feb 2022 14:08:52 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 14 Feb 2022 14:08:51 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 14 Feb 2022 14:08:49 +0800 To: Greg Kroah-Hartman , David Airlie , Daniel Vetter , Subject: [PATCH 00/23] component: Add common helpers for compare/release Date: Mon, 14 Feb 2022 14:07:56 +0800 Message-ID: <20220214060819.7334-1-yong.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N Cc: Liviu Dudau , linux-kernel@vger.kernel.org, Srinivas Kandagatla , Laurent Pinchart , Will Deacon , Krzysztof Kozlowski , James Wang , Chun-Kuang Hu , Arnd Bergmann , linux-mediatek@lists.infradead.org, Hsin-Yi Wang , Matthias Brugger , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , srv_heupstream@mediatek.com, Stephen Boyd , Sebastian Reichel , iommu@lists.linux-foundation.org, Robin Murphy X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Yong Wu via iommu Reply-To: Yong Wu Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: iommu-bounces@lists.linux-foundation.org Sender: "iommu" The component requires the compare/release functions, there are many copies in current kernel. This patchset just defines four common helpers for them. No functional change. Change note: v1: a) Split the original patch into many small patches. b) Use device_match_of_node helper. c) Move the functions into c and export since the callback doesn't look like it should be "inline". d) Add "component_" prefix for the functon names. e) Add a new component_compare_dev_name. RFC: https://lore.kernel.org/dri-devel/20220128081101.27837-1-yong.wu@mediatek.com/ rebase on v5.17-rc1 Yong Wu (23): component: Add common helper for compare/release functions drm/komeda: Make use of the helper component_compare_of drm/armada: Make use of the helper component_compare_of/dev_name drm/etnaviv: Make use of the helper component_compare_of/dev_name drm/hirin: Make use of the helper component_compare_of drm/ingenic: Make use of the helper component_compare_of drm/mediatek: Make use of the helper component_compare_of drm/meson: Make use of the helper component_compare_of drm/msm: Make use of the helper component_compare_of drm/sprd: Make use of the helper component_compare_of drm/sti: Make use of the helper component_compare_of drm/sun4i: Make use of the helper component_compare_of drm/rockchip: Make use of the helper component_compare_dev drm/exynos: Make use of the helper component_compare_dev drm/mcde: Make use of the helper component_compare_dev drm/omap: dss: Make use of the helper component_compare_dev drm/vc4: Make use of the helper component_compare_dev drm: of: Make use of the helper component_release_of iommu/mediatek: Make use of the helper component_compare/release_of ASoC: codecs: wcd938x: Make use of the helper component_compare/release_of power: supply: ab8500: Make use of the helper component_compare_dev video: omapfb: dss: Make use of the helper component_compare_dev ALSA: hda/realtek: Make use of the helper component_compare_dev_name drivers/base/component.c | 58 +++++++++++++++++++ .../gpu/drm/arm/display/komeda/komeda_drv.c | 7 +-- drivers/gpu/drm/armada/armada_drv.c | 17 +----- drivers/gpu/drm/drm_of.c | 7 +-- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 16 +---- drivers/gpu/drm/exynos/exynos_drm_drv.c | 8 +-- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 7 +-- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +-- drivers/gpu/drm/mcde/mcde_drv.c | 7 +-- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 7 +-- drivers/gpu/drm/meson/meson_drv.c | 10 +--- drivers/gpu/drm/msm/msm_drv.c | 15 +---- drivers/gpu/drm/omapdrm/dss/dss.c | 8 +-- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +-- drivers/gpu/drm/sprd/sprd_drm.c | 7 +-- drivers/gpu/drm/sti/sti_drv.c | 7 +-- drivers/gpu/drm/sun4i/sun4i_drv.c | 11 +--- drivers/gpu/drm/vc4/vc4_drv.c | 7 +-- drivers/iommu/mtk_iommu.c | 4 +- drivers/iommu/mtk_iommu.h | 10 ---- drivers/iommu/mtk_iommu_v1.c | 4 +- drivers/power/supply/ab8500_charger.c | 8 +-- drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-- include/linux/component.h | 6 ++ sound/pci/hda/patch_realtek.c | 11 +--- sound/soc/codecs/wcd938x.c | 18 ++---- 26 files changed, 99 insertions(+), 183 deletions(-) -- 2.18.0 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu