From patchwork Thu Dec 22 23:37:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13080429 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 6B86CC4332F for ; Thu, 22 Dec 2022 23:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbiLVXiW (ORCPT ); Thu, 22 Dec 2022 18:38:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbiLVXiV (ORCPT ); Thu, 22 Dec 2022 18:38:21 -0500 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on2044.outbound.protection.outlook.com [40.107.6.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36E4BB6A; Thu, 22 Dec 2022 15:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AEG4ToBcxgKEUITpP8TsnXx02Et+fOynRU73t5IjGeevr3BmfnebqcwAB3YxL/uLrJImnGNk+6BXKuJ2Nm1n9Q+8tLW6kKHIivRM9rVhk0zxC5KARPX7CXncHecjCuumOnCpEMzOSVzL019BynSF+rOzetCAeYY9Qv8+GZWE8mZGCP/g25ote3BHmCFg2ICuHju723jgeYKiie48gJs0Yw97jfWmhhG2t97cOmzNq816PJpeu8Vm5y2LXM+aa4E07DvH1NzQERpZuMy5+5vlINwO3U4S7pR+aejnCxYsmmpJbU3x4gpH0r1r7wYBg2j6GIpE4eoWBRv1QXwXHGj3lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iX9wKz0aqai7Sdrr5N2vKqm9Ad5snU+tJzidN8DyPA0=; b=W9dynWaHT28n7FZ+1Yf4M8qiSV4TdX4rrDDd3z8LHEBU8Glt2IACR8eXRCjfEqkhkL9n70s8C64xgSlxv4P0OqjvfcxfiWxWSEgqV11JCGF8LxfXaNQ1oGAbXxl291YovPXQG9dV6g9SL2ZMBWYD9DrA2DYjnmk8lykagd9AnzsKmYI4sP4DSHG2KkueKXXdeNvYqNB/pTPjBtCWVpbTCJJjQ+yVHMRJh9/Wz30F96WF5giLILyeBRAlGloT8xLoP1eP0qifunA1Qv/Ms+BbR0N0zkJ9/cF2LWWooXvK9YnEf5TKS6WWIX/tQLoP4AVLpQJmbfHdeXigz+7SNBTDhQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seco.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iX9wKz0aqai7Sdrr5N2vKqm9Ad5snU+tJzidN8DyPA0=; b=yhEFY9kCGF/NiYIYrCyBh05bM94ycy60OHv91C7q6PTmtzeGKeg9Tj9hj0GP3cyT6cjXb1FxMomOyA8O4K2pJRhMLjQCQufdtlWNqFnynHfSfieEZ6i/sjs72hocHcWtZcznsvpyh1EhVRVA7L7I8SBaQrrYJzpowOBIeCN/qGuthTo5O3FixQ8GAFKuYyR2p9lSeHldPN7am8UxOaX0nerXOCzqUtJ1dO+YsE9MfsLQTvqSBm8gJUgugdtgz6DOCQ+AyXqvebQTJtrkz+AxG6zc2TpRwC06uhNejGE4cbZ0TAk8fDjYumITAdFN1LRzJaqXbC93+PHDGh9RlYiO9g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) by AS2PR03MB9100.eurprd03.prod.outlook.com (2603:10a6:20b:5fb::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Thu, 22 Dec 2022 23:38:15 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2b95:1fe4:5d8f:22fb]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::2b95:1fe4:5d8f:22fb%7]) with mapi id 15.20.5944.013; Thu, 22 Dec 2022 23:38:14 +0000 From: Sean Anderson To: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org, Sean Anderson , Abhinav Kumar , Alain Volmat , Brian Starkey , Chen Feng , Chen-Yu Tsai , Christian Gmeiner , Chun-Kuang Hu , Dmitry Baryshkov , Jaroslav Kysela , Jernej Skrabec , Joerg Roedel , John Stultz , Jyri Sarha , Liam Girdwood , Liviu Dudau , Lucas Stach , Mali DP Maintainers , Mark Brown , Matthias Brugger , Mihail Atanassov , Paul Cercueil , Philipp Zabel , Rob Clark , Robin Murphy , Russell King , Samuel Holland , Sean Paul , Takashi Iwai , Tian Tao , Tomi Valkeinen , Will Deacon , Xinliang Liu , Xinwei Kong , Yong Wu , alsa-devel@alsa-project.org, etnaviv@lists.freedesktop.org, freedreno@lists.freedesktop.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-mips@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH v2 0/3] drm: Add component_match_add_of and convert users of drm_of_component_match_add Date: Thu, 22 Dec 2022 18:37:56 -0500 Message-Id: <20221222233759.1934852-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty X-ClientProxiedBy: BL1PR13CA0205.namprd13.prod.outlook.com (2603:10b6:208:2be::30) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|AS2PR03MB9100:EE_ X-MS-Office365-Filtering-Correlation-Id: 95bddabe-aee3-464d-2fbe-08dae4759843 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qja4W2aRGHd/OWJchZu9X+5LyHNge2NwqDEEyYXky9xitvHfJarZ7uRBr1JxHYrXO5LGyF1YnZwttN6MXBDVJiNaeDbMVpNKH/7qYp8E+i6PQQdzVu5zJqYcbjrFfXC5iqI2zZYSBpVS48uFZZKZcJi9vmuTZk2Z/dFTPaB8+Puk8V7aWKWtrRXNTy7M43XxR+A5v2l0S1m88CysODsyGtsqHvWvlK1hlUQ3SiR5O+n3d/StnYSFjNsIbATWDPT1V2BFCJ/hRWp94bSca15MQReVu1bm3GyzKHnl2c92YDHoRmHggWDygUQ5SV9fQ5HwRA3F6t6sZxGJaRLStLRUsW2gsxws+QvjBz9ZfB+vzRC002lBaqF9aca341Z5ZgYM7n8QKo6cZYULaLAUI4MT3NAo0M6ZzPjWcjuuzdW9UJ1owe2HI9UgYb88QMMm4Mx9RHUCLS7Y7cr+a4ORqaeH7uArPwgrdTagNDrRjsty+WRHYHKIf8H7wdmj3gYK6bI8fLkqYKmt7awwgDZYyRDW6fyLFAUkIk22FCqjY+Vw6W7tDSczfVEWMOp63Up11bewCHDr2pwQ/3OEeEAVPrteO4pui3SGvAbAsAn5rpJgUAJaRvN13WOE4qqGRR8x/X1ECHJOfwdFUTIWN3gGT/iW7wSnWIWLQIfc5HNiNtVFX/b2r3gs/ECnfU2erjAmZuOdc1RvvZRPvprEvE9wrxelYg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR03MB8847.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(396003)(346002)(366004)(376002)(136003)(39850400004)(451199015)(86362001)(36756003)(110136005)(316002)(7406005)(54906003)(478600001)(38350700002)(52116002)(8936002)(7366002)(44832011)(41300700001)(2906002)(4326008)(6486002)(66946007)(66556008)(7416002)(6666004)(5660300002)(66476007)(38100700002)(26005)(8676002)(6512007)(83380400001)(6506007)(186003)(1076003)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lGnUqBqzr5wc9MhC54TRJxsX8E4B?= =?utf-8?q?jEQApMmFEmjDQpfRU451+nNLi/YwlY0eZAAoj25nEFYxM0tjfdR5rKdnEGQbj2p3r?= =?utf-8?q?fYiow0odfkXxbmRUR7tt6HLjziCToADWT4T2hJndb8lR1exBOUMi2xq3KbVAorhjY?= =?utf-8?q?cCwh90qreZlZmbbpvgpmFgkRGmjfs0Nc1MDvHKX1m3lMb8BzBfKVO9YieU7txsIbR?= =?utf-8?q?kA/3pxuXnb6pwTLr/sK1FVHrHRpD17pGGoVrC1UTr/mweCSslCNt5cBQletXfH3Fw?= =?utf-8?q?Olfz3VG1YeuCq2ad3pDBcnXLB0N4766fffe/IiNcpess1FklNNsYA0yLidpe9N2TX?= =?utf-8?q?hACH34sfHadUtcuI1bsXK9vwtIvxRXmL4ClxqchsJqtAb173+Zp4KC4lrXSNy/eSl?= =?utf-8?q?3wEbzNSIJ5ClaWrIrvouWFsnG8CnNrHbvXaUuTfh2+e0QP0vgaltsKCKr+2qNiao6?= =?utf-8?q?0JyCh6UMU9A3ONMfHXxk/QMtt/TK4K7c9yDiuc904n9uo9yzhq+0NQcRVAtxsDG+W?= =?utf-8?q?uPElhJw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?OjfBLooZ1mbjzMWXpo1KkqlKXKL9a1LErVQo5Am8DbBqHiN+mi8f2a/ESRPGnteCR?= =?utf-8?q?mf2VQHG7sYagCgNtVsKwOH7dOP54HQDTVdsstxThgq5eXaTanPRlsmNuTgq70UFPf?= =?utf-8?q?tkkYDCwnUtOm9PAu0dKqbZvzQSEzSWdLvA=3D=3D?= X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 95bddabe-aee3-464d-2fbe-08dae4759843 X-MS-Exchange-CrossTenant-AuthSource: DB9PR03MB8847.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2022 23:38:14.5223 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LXQgymlxgccz8OK/+OoLStjlMTW3CLIijdzO3LkagAh8sYgNsd+pIObMSk9WssAzh9YojyL17nsDLxvH6c173g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR03MB9100 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org This series adds a new function component_match_add_of to simplify the common case of calling component_match_add_release with component_release_of and component_compare_of. There is already drm_of_component_match_add, which allows for a custom compare function. However, all existing users just use component_compare_of (or an equivalent). Changes in v2: - Split off conversion from helper addition - Rebased onto drm/drm-next Sean Anderson (3): component: Add helper for device nodes iommu/sound: Use component_match_add_of helper drm: Convert users of drm_of_component_match_add to component_match_add_of .../gpu/drm/arm/display/komeda/komeda_drv.c | 6 ++-- drivers/gpu/drm/arm/hdlcd_drv.c | 9 +----- drivers/gpu/drm/arm/malidp_drv.c | 11 +------ drivers/gpu/drm/armada/armada_drv.c | 10 ++++--- drivers/gpu/drm/drm_of.c | 29 +++---------------- drivers/gpu/drm/etnaviv/etnaviv_drv.c | 4 +-- .../gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 3 +- drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 3 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 4 +-- drivers/gpu/drm/msm/msm_drv.c | 14 ++++----- drivers/gpu/drm/sti/sti_drv.c | 3 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 3 +- drivers/gpu/drm/tilcdc/tilcdc_external.c | 10 ++----- drivers/iommu/mtk_iommu.c | 3 +- drivers/iommu/mtk_iommu_v1.c | 3 +- include/drm/drm_of.h | 12 -------- include/linux/component.h | 9 ++++++ sound/soc/codecs/wcd938x.c | 6 ++-- 18 files changed, 46 insertions(+), 96 deletions(-)