Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp676341rwo; Wed, 2 Aug 2023 02:15:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlHOP4vFSDs84XePGjTEj/8Hp6iEJbP3mND0yDmbV0JZgPP63UM4fSPhhqNYirCaBsb0N+zu X-Received: by 2002:a17:902:e88e:b0:1b8:b459:f47a with SMTP id w14-20020a170902e88e00b001b8b459f47amr18590172plg.34.1690967724150; Wed, 02 Aug 2023 02:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690967724; cv=none; d=google.com; s=arc-20160816; b=sIaGRbNbNVIkjJ1m8qGfUFEPV7GvRfPIBtIkAzO6XjwvxhMlph48Mf/fsR/re42ri0 wKE9VS51lkYQCbVjuQSzQAS4JyUmpKJdaJ/HWofzuM1gA3k2KGXQL7DECrEkezMV9rmi 0ku0+mrClfxK/6lDDO4E+N/SCCBr9A3tE6lYYYU8YuNemdXp1BDovWLzXaAYAHv3ybo4 nR2hkgzqkdGYYSQOx9qxFk8xWWXO1ZzqBlK5iWLz64kxhBhSqi4yeHYCgqQT03rdshbM /WmycY2zabK3ZmCVudCn/vrjvz4TGY2Zs4P9K3rg6u1rpEWY45E0xEQFokN111fquUiX udtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=dbnN1Z8UKN76p4K7yPuxnz/RSTgqlx32ik03n2syEQ4=; fh=kc4CjktupVnP7Ak+rnAoZd0RpCE++BBJ+zTWN58huuQ=; b=VLW5HTnNvVeTs9v5RK4iQmnaIEKoz23e29wm+Q1mEM05qUxesaSTMDxjjSK41K9Rcw kdQnQy2W5Kc1GXNgw5zUzsPU83CoFERyBFBHwDPUUHPAlBjZrKZjDcHVge/Z21WNDfG5 f8KN2xmJfGWliZwV1M449MspPNGRlxXckgaFXPtDk0Nuds1q5nKcrbzZOYPWYpFS31dx gntGmjZHKfXX6Ad3dYdmsWmo4ZISVDOJFbt02LTP3b3Ad5qLABkCuAu+lHeAEkGZZRos kwygVaTvsonewLPl9zv0Ayk78co9u2YvULe2mIMCjb2I+84QyDmr1es7DgGcIa4q+JJL n6Xw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m8-20020a170902db0800b001b85ab48092si11063328plx.499.2023.08.02.02.15.10; Wed, 02 Aug 2023 02:15:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233882AbjHBInJ convert rfc822-to-8bit (ORCPT + 99 others); Wed, 2 Aug 2023 04:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233981AbjHBInH (ORCPT ); Wed, 2 Aug 2023 04:43:07 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11ECCE61; Wed, 2 Aug 2023 01:43:05 -0700 (PDT) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id BABD824E275; Wed, 2 Aug 2023 16:43:03 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 2 Aug 2023 16:43:03 +0800 Received: from localhost.localdomain (183.27.98.54) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 2 Aug 2023 16:43:02 +0800 From: Xingyu Wu To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , "Maxim Kochetkov" , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , Emil Renner Berthing CC: Jose Abreu , Paul Walmsley , Palmer Dabbelt , Albert Ou , Walker Chen , "Xingyu Wu" , , , , Subject: [PATCH v1 1/5] ASoC: dwc: Use ops to get platform data Date: Wed, 2 Aug 2023 16:42:57 +0800 Message-ID: <20230802084301.134122-2-xingyu.wu@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230802084301.134122-1-xingyu.wu@starfivetech.com> References: <20230802084301.134122-1-xingyu.wu@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [183.27.98.54] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use of_device_get_match_data() to get platform data. Signed-off-by: Xingyu Wu --- sound/soc/dwc/dwc-i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/dwc/dwc-i2s.c b/sound/soc/dwc/dwc-i2s.c index 1f1ee14b04e6..c076090a9864 100644 --- a/sound/soc/dwc/dwc-i2s.c +++ b/sound/soc/dwc/dwc-i2s.c @@ -690,7 +690,7 @@ static int dw_i2s_dai_probe(struct snd_soc_dai *dai) static int dw_i2s_probe(struct platform_device *pdev) { - const struct i2s_platform_data *pdata = pdev->dev.platform_data; + const struct i2s_platform_data *pdata = of_device_get_match_data(&pdev->dev); struct dw_i2s_dev *dev; struct resource *res; int ret, irq; -- 2.25.1