From patchwork Thu Jan 19 19:10:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13108707 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 8D137C004D4 for ; Thu, 19 Jan 2023 19:20:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=S/ydqbVYoGu1dC2qotGH8QQawBdORCNycD6Idjm6xok=; b=kOYXdENNgcgVtP1pazCg/82C/s rRbSh/12+yolKxBKIiuVHcUfkJGqCh890dByvKDjPPDU3Xo27WupUEghpNFATmRUB48ERVAKNE3Ik OyNfDuUyXNoO3Slzg+CAZKeVjDfPE2dNOKP7PVCspZ1S5VCEASz8yDnDh7NzXywzK/YkFA9D4qaX0 ifiit4CT5AIylEoFgBglD0KNh5ydLfyFewiHvHjbe66gQwVrzme2adV32zHHjrEkK33yWaGvq2F4l 869VvjwcxhwsJtIjMaunyCn7Orammx0Tvfj58Ti9YRjg2NeQcRZ5LEp1sYJKAjOriunlo3SDxZ30o anbhMBoQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIaRz-006szU-SE; Thu, 19 Jan 2023 19:19:52 +0000 Received: from mail-vi1eur05on2077.outbound.protection.outlook.com ([40.107.21.77] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pIaJb-006ouu-DU; Thu, 19 Jan 2023 19:11:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J3uHezwUvB+IM3Rfkjq2HdCGN9dclx/IHSDhSpwUTK2qpX+F9HmOrcJ7Hen4wdCVms56kjc44ohNtJZFWTP79+kFuEoXmxP1uFzoMpS5TF2fkkW/pUwotWGpbqurr5jX1prp6CAnhMGdXVDdtNFFV2xTBivvjMXMhS+A4A1pmJGXNE25/VhQqMM1/g4MWvfXd2bsxowcN2dCPILx366KoTsKh/AVemC1moWKCQUmlwwmMzVBeW0wOpNqXLVLyKzqx/jtvHk/X3ak7yCTiyMi0ycuCk+ZKLlVqX1TO4s7pDqCJR9DpGMeqiLStQNdyDl4XDPXgriY0SvNduCOHLksEA== 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=S/ydqbVYoGu1dC2qotGH8QQawBdORCNycD6Idjm6xok=; b=iwOodviHt7S8MVsc10Uq7UB8MleCz2SM9qbYcvDnbIBYmy3FX8D1ssZqEO9Nsud5fPIlrnUh4x+awbZfZYbIp03ruLsjBtlkszNhLqD/2B1dd6peN2K5GFK2iQkDeNHmIU9d2R5Xl45A0h5owMHQPRef9vgD3MU3xnsaP0ztolVceuDBqLGeng7Wfe0kUf4ECMp9B7JSZR9KHfssNA8B0odjQUSmHsDStzH8EhDCwQBMf0aC1hRYG9lmOIuHB6EanYNLH/czGvwOfKvz3Se21h1JDOw4eCQZfAGHwfLMHWWNWrJPTJtTsWMVAhk9ReCG0zQ1166ziVnq7hkrDWzheQ== 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=S/ydqbVYoGu1dC2qotGH8QQawBdORCNycD6Idjm6xok=; b=D6CnGq2m5f+OzmVIQDWiBAc/qrxeRqrLVcqYGcna6ywrJ+GVGD3Fkmm3AtY5DySatZMB2oqUAnNxbSSqBlSQZuCTVx4ePeElIHQe74GWRujxJglPrmd852jLfjGL4k+Uup0kAH6TqwvX4h1TFRX1nCNDTdQAIoSzh1MvZfb30Eu9T5wL/zP1cRxODKbz+nKmiY8mI86Yz6UvzmsGpF3ZC9okmG16pViACBxqx4/4gxUL3eZjgDKaZETL9YZzW4YRba1zfzRV5ob4RFPGNMVmIoLWLCzdDs5kC2fwkKtnyfXQbsgc+qE83T3Cv2Sy49ZJaz61sjEEjt/OsVzQXxnR8g== 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 DB9PR03MB8259.eurprd03.prod.outlook.com (2603:10a6:10:307::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5986.19; Thu, 19 Jan 2023 19:10:57 +0000 Received: from DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::6b03:ac16:24b5:9166]) by DB9PR03MB8847.eurprd03.prod.outlook.com ([fe80::6b03:ac16:24b5:9166%2]) with mapi id 15.20.5986.023; Thu, 19 Jan 2023 19:10:57 +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 , Mark Brown , Jaroslav Kysela , Joerg Roedel , Liam Girdwood , Matthias Brugger , Robin Murphy , Takashi Iwai , Will Deacon , Yong Wu , alsa-devel@alsa-project.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH v3 2/3] iommu/sound: Use component_match_add_of helper Date: Thu, 19 Jan 2023 14:10:38 -0500 Message-Id: <20230119191040.1637739-3-sean.anderson@seco.com> X-Mailer: git-send-email 2.35.1.1320.gc452695387.dirty In-Reply-To: <20230119191040.1637739-1-sean.anderson@seco.com> References: <20230119191040.1637739-1-sean.anderson@seco.com> X-ClientProxiedBy: BL0PR02CA0047.namprd02.prod.outlook.com (2603:10b6:207:3d::24) To DB9PR03MB8847.eurprd03.prod.outlook.com (2603:10a6:10:3dd::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB9PR03MB8847:EE_|DB9PR03MB8259:EE_ X-MS-Office365-Filtering-Correlation-Id: f0df6410-229b-42d1-bdb0-08dafa50e51d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jwEJ2HzgHfRobeCKv6OTf6t3Eo6YJ8mm0ivtHPceVdyvpIbN81R5Q5d3JK0tRpEyXepvIGDT03XR5/gTyB4L63nUyakuMjaWYhKOCn7I8RGS5t9rU/Yi0uiCFboQfLO2v+GJK5H9ZKaJSNuWoXelEBmCtYH/g0XR644p2dDxXLSO4seZjjdMI2KwOuYxyUhkYPcN6bfTchChOzEq1+x6EdHL6HKboEwX++FcuL/W0XQyYFu0PCfBtFJ4yStPBu/80TOANJM/j/dW6hacxI+eLHJoNt2SKEhBdiJ5N6Gqg0IcFxJ3DwHKdX3EOcoA8fO7IDkrgaRToqMPZFi/qn3kAzRKfprZjff5oySfiFMuapjwRwdBG2O3btDbYGnWeQu5HVe5n74au0FwaSIj10GJadr7RLLTV8V+OJrIAqv2Z1Zcbq787lPhfsz7A4EjQ3OFH114UAOWH6cOtV53JT4rLv/9oXZSt9bZ5ItMSQW1Ij6GP8wh8zkXswP33+l3GxcDZR7Lpf7xcmMm3SvifTep+z9B9DiMmfRGPKsPQ6GgTblFpBePKUppgRFw3xuSqJ0WiEVCN2l1WNPYUxZdPRkPSjOuWQbSgQadTBWDMfL8tQxWm0ZLYm5dtFs6nxrUcyhnpQOQ6u6LJE2id4O9Zif3NrwpErrbQMeD2qtbG1FZRMqVKoQZzaipCeECuNzFpe8D 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)(39850400004)(366004)(346002)(136003)(396003)(376002)(451199015)(66556008)(44832011)(5660300002)(8936002)(7416002)(54906003)(41300700001)(2906002)(316002)(66946007)(4326008)(110136005)(8676002)(66476007)(478600001)(38350700002)(6486002)(52116002)(38100700002)(26005)(6512007)(6506007)(36756003)(6666004)(186003)(1076003)(86362001)(2616005)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gNF7W/Osnd2lAyHfU34iesACmNRA7yO1rq/lCh/vhiqJQgjekgWb8OM2BvYANltu6pJuKWlnLagyxOPc5Ak60YO5OrGOY0m9et3kr7fOD86ZbAqoghDsI6sV8b45NFf6IMLwo0D8GoOOErjCe+W+MaVlv4PAttRtCrfaj/QibVLkQSr2G76QI73DmSiDBrq6k0CixYj1HuR3tnqJw43a74VrCt4VI9x74Nx8R1zT6ieIWZPa6cWSK7Lh8xl1iDW5JJ9rRgI4ZDXXnh2UBWv3GmB7hUCYzNDmW3X+zx61jjt0bYTq1EVQa3eR6sHxEw4Z/YZ6x1AsORWN6KeplIGPXym9sr24ajdMg9kTQnR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nhBMvl48gzVRJ+BAWN7F0n0MBbcbaXyqLJwX/Oa7zBbVekkqcLkllnIvX26d1e9lRZrHfJ7e5QV3XFEj1iK8F+bVzb1wUYi71M7otpaMcbPVr/DkLn7BwqptDVDOn1OD9KPIc2GJek/zvP73zdBHHXyKwGJkVX4fWcndJrsYEPi6Y3ldMbeoA== X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: f0df6410-229b-42d1-bdb0-08dafa50e51d X-MS-Exchange-CrossTenant-AuthSource: DB9PR03MB8847.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2023 19:10:57.5542 (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: tHs8UYndZ/e5HGDQNjTSU4IiJn2JF1fF07DlkgHnI8Sn2T+UxzUOG4Ec+KhY1jTQ9I2XSj4Oj8Ikuh256sECSg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR03MB8259 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230119_111111_510750_FE132110 X-CRM114-Status: GOOD ( 12.06 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Convert users of component_match_add_release with component_release_of and component_compare_of to component_match_add_of. Signed-off-by: Sean Anderson Acked-by: Mark Brown Reviewed-by: AngeloGioacchino Del Regno --- Changes in v3: - Rebase onto drm/drm-next Changes in v2: - Split off from helper addition drivers/iommu/mtk_iommu_v1.c | 3 +-- sound/soc/codecs/wcd938x.c | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/iommu/mtk_iommu_v1.c b/drivers/iommu/mtk_iommu_v1.c index 69682ee068d2..14019ba1e41c 100644 --- a/drivers/iommu/mtk_iommu_v1.c +++ b/drivers/iommu/mtk_iommu_v1.c @@ -670,8 +670,7 @@ static int mtk_iommu_v1_probe(struct platform_device *pdev) } data->larb_imu[i].dev = &plarbdev->dev; - component_match_add_release(dev, &match, component_release_of, - component_compare_of, larbnode); + component_match_add_of(dev, &match, larbnode); } platform_set_drvdata(pdev, data); diff --git a/sound/soc/codecs/wcd938x.c b/sound/soc/codecs/wcd938x.c index fcac763b04d1..0663b15fa757 100644 --- a/sound/soc/codecs/wcd938x.c +++ b/sound/soc/codecs/wcd938x.c @@ -4474,8 +4474,7 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x, } of_node_get(wcd938x->rxnode); - component_match_add_release(dev, matchptr, component_release_of, - component_compare_of, wcd938x->rxnode); + component_match_add_of(dev, matchptr, wcd938x->rxnode); wcd938x->txnode = of_parse_phandle(np, "qcom,tx-device", 0); if (!wcd938x->txnode) { @@ -4483,8 +4482,7 @@ static int wcd938x_add_slave_components(struct wcd938x_priv *wcd938x, return -ENODEV; } of_node_get(wcd938x->txnode); - component_match_add_release(dev, matchptr, component_release_of, - component_compare_of, wcd938x->txnode); + component_match_add_of(dev, matchptr, wcd938x->txnode); return 0; }