From patchwork Thu Nov 3 18:22:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13030820 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 0597AC433FE for ; Thu, 3 Nov 2022 18:22:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230423AbiKCSWu (ORCPT ); Thu, 3 Nov 2022 14:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229700AbiKCSWt (ORCPT ); Thu, 3 Nov 2022 14:22:49 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2060.outbound.protection.outlook.com [40.107.105.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F0B613D53; Thu, 3 Nov 2022 11:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CY8tFi5j4eb57wIWm9SmJ3WS+msYucNe0KCWBo/bP83s9NOI8zkhLkyk9b3e8ruwDqU3kurBZSuwwjGsdMadf4mBvY9SCfgN1FtbnHSqEK0N7JRKS9KBWQ2OZQhS1sBOEU5ETnOBWdpnOLsb2H/eoNmGZlkuWXPb5SeDW+A8mDv5HVruXWBGa7O4wuBPFS2+rsKuyhMfWcpctrm5sj3FTKI04X7tf22nllb95Y+9eszpHJVHP2tVuoO8AW2LOKtxmn7zQBD5DZipASGgr/C7+sX/ozwokWqDAUJck5kKzzC8RHV9f9rp6UHHtCIvaueLcItG2cx5DbnSpnr7ofdhYw== 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=1mm8b+i8kaoa5GNIQmxKcTysRfGEQ/TwPev1Pm7fN78=; b=byIKyBf456hTxf1j6UUFTaaAXJmf6wbfyawbQhlmssRlmm7J09EP+bqOaMNnPQiuiCu19k6+jqk27LhrTPssKtkzx9KiN79pgb+yKSMEj+7HFm2kTckgw4CyKJAbM/zI8/EgMblvBG5/IO6AAGpoe5H5jFc0euAwCZsC8EIy/lOtA9rgOo48erSOrdoFF0KMkfaMJCwy85hbyb8pVso9kKUK993kqq6Bm4ziEPmAHHUmHAuM+wmQyNXlprD3qi+t4SiM+XqwQXLYwk//vLRWJTIG267PyB+uH2fz+cVUXssMpEJQ4IhRlANYQxgEvBHRRHzcw21mqUlodA2PVRMQOg== 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=1mm8b+i8kaoa5GNIQmxKcTysRfGEQ/TwPev1Pm7fN78=; b=NkKTSWUYgxBnswbTIvKqCEnwd5xiLjpKRmu0mYT4XIsJlriF2IDzQOyhOy6jcX87yI0qwbNfEals9qiN8/iSPqFt+QkYDkTd4yspJQdpaGU1bfgQw2Z8VG8+kM6iivo/RO0lAbVwLAQPTYtOpi5ZwKoXnDO35jageiaujQ9vfVxmlsVb/UUyVi8eP4ev+Bjk4O1oMYHKg7WJLTWipG4sXTmDnfq0fr4CKgusMfZxvz82ue5yYxWNmUN8XOAXH+LVERM2p1MUxO+Zz05PxZhwQALiFdaayBILoR1zmdQNrcVK272gboZzo+z03J1SInwl2iyIS0Nnlx4hBBTt/ZHIFA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) by AM0PR03MB6195.eurprd03.prod.outlook.com (2603:10a6:20b:159::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.19; Thu, 3 Nov 2022 18:22:43 +0000 Received: from DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::e9d6:22e1:489a:c23d]) by DB7PR03MB4972.eurprd03.prod.outlook.com ([fe80::e9d6:22e1:489a:c23d%4]) with mapi id 15.20.5791.022; Thu, 3 Nov 2022 18:22:43 +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 0/2] drm: Add component_match_add_of and convert users of drm_of_component_match_add Date: Thu, 3 Nov 2022 14:22:20 -0400 Message-Id: <20221103182222.2247724-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty X-ClientProxiedBy: BL0PR0102CA0027.prod.exchangelabs.com (2603:10b6:207:18::40) To DB7PR03MB4972.eurprd03.prod.outlook.com (2603:10a6:10:7d::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB7PR03MB4972:EE_|AM0PR03MB6195:EE_ X-MS-Office365-Filtering-Correlation-Id: 165d6b21-a0ae-421e-e929-08dabdc86649 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zjRfd+QnVSzRpss+q5NSVrdboESkeLaf635jO7nCd+5AfHOytRGwOhHasmTTO1pQpqajph4sSEOJmybpoBRCvBwaVzDdezHbGCECIqNuEdjncZFkx1a2G3VXWi/GWV4AEajDOJpGpfgw0f6Ec+/kox3kUV5MhGqzyiHOjgLbIuEFU8utsPKdGnIN5rwamChxdfmgGTq3DYrvxgceaGJhM9M1v3eKweLM/BXJcMDEP8D7RnMLhiU/waidHwGdwBGhHB22fM6KWq8hF85m4EV/i83ih1rZOk0ruKpB+jNtkY9/x3Xxk6BEVZeT2eZcaJbRc6ltwMh/ggkEkB5xt9P5jpYNY5MijiJXXt4eym5vPdvP7la0g2JLxrm9oiVBhpjq9N6HhuIgSiPkg7FLpxIxLBTzldx2p1tkwXjFej+ualaShF6JFG7gDyBIlnSu/UJo+JhitiPaEszCipMrdAfPZvhuSk6arWfQHs7RvWtBmoOfvVmCfYK4GC1ZGIIEqIxoGNj9ErQYSj4Ox/hs5SQM6eCB/qqqadzoIqa4QxZjcsG8K+brDJgzo8KbsFvx50nHlOWVoFvNh/eYoe3N5ckUdfTGQM6eXwi0oa26u/nP4fGBC6AlXJejFQo6huGQ3hTFe6SjtkatWkERmr1PR8rJ7Yv7kxdEo76vvDlSBq+KDWJh9Bc8z2y18dX0gr6+yRkg4RrU3JxSkBdClNTirjikXGodeV6j5Vmvzm7Xy4G/YGZD2IAlm6cJVCBG9cMbTP64Re6xTjLVPLM6P3KDPyx4mQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4972.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(346002)(366004)(136003)(396003)(39850400004)(376002)(451199015)(2906002)(8676002)(66556008)(66476007)(66946007)(4326008)(316002)(26005)(6506007)(6512007)(8936002)(36756003)(110136005)(44832011)(54906003)(41300700001)(86362001)(5660300002)(7416002)(7406005)(7366002)(478600001)(6666004)(6486002)(38100700002)(83380400001)(38350700002)(52116002)(186003)(2616005)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: qvhgM9JIIGfJ36wiGqaYbIGFpm433vLbQDQwOoDtqEGLjJ02JFdfiDPyJAjBUiIX69KTyq3VdsSpFVKuwCk1nDKr1tGlheBBgq0mPiif0XCBi9xUwh/ctbJnUEpMsDjD5FwR/5wonmgQfrmpUIQuRYzppt1Oievas9DK0Ru+xjy7+zWDgSkgPYQlSM+b5BPBQZFWGx6BTGo5M+vavQi0e5SbXV6wAtwGz39mPQyQigYpEZ88w0Kh0xeqwPPRLvLOV/9jl1PvIcSPSaxxqorITWkSFty5VY/OHaX/leN/u0Z7g2ZbiO9vubp4PE7hzy4mUi356Y/EaaI2+fGVkUBEq6+J2dRmlYJinlayrt8oKhprkwaRYu+CDu3xM+5obPhLBPGzrl0nbLdN69ohn5lw5ueLoZMxcHIp6gZxcbh3/ltgqGbRzxwAguIOayKAmpzWbYsBqNbaajhFGtFijZxUo+sGXhOGjLRqlfMpc1g12QbcHg+m1nN+32xmvgLCAm/9B4yMVx89lmSBUr4AabvuqzDFyQtn8wPlWIGkIrK2+MdUBolibmUFCxF02N/9QihgMWJ2HWJiC+9aLaDoV8nn2Vn9mf5Od65R1d2N9W3Bib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exchange-CrossTenant-AuthSource: DB7PR03MB4972.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Nov 2022 18:22:43.5137 (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: Ig2SGSpQ6OnuzxRZlRDcbW3gp/tRXSTxR0/0VOG8ABtDrrJPqKRI8p5gXODyrlIqpORn8X+Hvnsm0o4VSjg5QA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR03MB6195 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). I can split the second commit up if that is easier to review. Sean Anderson (2): component: Add helper for device nodes 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(-) Acked-by: Jyri Sarha Tested-by: Jyri Sarha