From patchwork Sat Aug 14 20:19:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aakash Hemadri X-Patchwork-Id: 497696 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.9 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 950F3C4338F for ; Sun, 15 Aug 2021 07:33:39 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11BB460F4B for ; Sun, 15 Aug 2021 07:33:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 11BB460F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A4109176C; Sun, 15 Aug 2021 09:32:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A4109176C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1629012817; bh=KprtPVAQeSYjdjaMhtKd0nT2UBiU8p/mtmM3Tnk+vxM=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=R858cleWBOvLmbEWprJr/F9lFLudY8baUlZu7F/pBDtt64AjdKq3rhmsAd949QM+j ZEAjCVhP/ObsYxjQtXWrY/E/S969xCx35zKLV7XoisROM7P9Qd0VdQtNpUjT780od5 8qbiedp7dhRnGCqB1JH3Inr84EFwhmzMyXDiy5gU= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E3297F804EC; Sun, 15 Aug 2021 09:30:35 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35EFFF80279; Sat, 14 Aug 2021 22:20:04 +0200 (CEST) Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C4137F80127 for ; Sat, 14 Aug 2021 22:19:57 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C4137F80127 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aw8w4Wno" Received: by mail-pl1-x629.google.com with SMTP id d17so16175122plr.12 for ; Sat, 14 Aug 2021 13:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B5k7GWGp6zz6FFJMpbfsb/wqc1GC34css4EKFgIvTFU=; b=aw8w4Wno9Dz2PJ1rQMJgC4h+thEdCERa1X2zFtnQ+64fLv7bgIyTSL/D99Z19mNG0b FsG9715dSap8EPnVA9X3bhuYQG7eUq5wNr9lwW4b/0sP3keSGYR9mtQy0KtRPlGsYBeJ aOJsRiZZ2WcIVJG0xmj1gFmeBz0PU6ONKogngmKv7PzAH4EvwpHryplf+zsCdT+bCE1F 0MM7P2QYzuDEjyvdRoGSCRAr6Z1P5bwAJkQEpvsW+xRZC62hQ5+uzN/sN6+YTJbANMtu E+LUyEBn2nMzUI1PhqCzlIDlYUVLwyOazsynJd9NukFBEsIuG8+XCCUfAOaMyUhkSobw d7Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B5k7GWGp6zz6FFJMpbfsb/wqc1GC34css4EKFgIvTFU=; b=G8iHQ0+6GxeX/s8CW4VRdUkvYmVW783SGwoFAjiBUIWCi0TAKnrjvmV2I9DcUFTzNv CdFL5MOmEZs7jMsSIxKhKzeoJkq/nYMjXwshEcpK3qphe253x1nT0C3kWsSo+x9//L7y XeVOZQUtFinyK8UN1xV8sxzYuz2IrHxfe4prBw/Ys49wSU1JqfYoSqTTly7mARwwoBTX iIilP0IT/Sqkr1B9/1GpV9FLq79qc926It0AIdNFV5clo19r9XgD+gh+FNghvMkC8ETn jeBTfXFBZls5xv3VYGCIzyKh5ZmeWaPe7PLXt06S24Ny7DPmI/5RToyfysqLMl3p00yc BjVA== X-Gm-Message-State: AOAM531mTvoBWY70v9SmQgE/PgUhiV8PK0ICkEukhhWvXbPfdx/4MC6A Cc3wg/5EGWWThjP/iE2d27s= X-Google-Smtp-Source: ABdhPJzQa6P1b996Rhma2rJ5WA3QLSQV46gIgVX4Uo6Z5DywjTwgLpQESuRb0uCzCzIYFEiSlhRihQ== X-Received: by 2002:a63:b47:: with SMTP id a7mr8201504pgl.181.1628972393665; Sat, 14 Aug 2021 13:19:53 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id u13sm6413121pfi.51.2021.08.14.13.19.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:19:53 -0700 (PDT) From: Aakash Hemadri To: Peter Ujfalusi , Mark Brown , Liam Girdwood Subject: [PATCH 1/3] ASoC: ti: davinci-mcasp: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:49:39 +0530 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 15 Aug 2021 09:30:27 +0200 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Shuah Khan , Bjorn Helgaas X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Prefer `of_device_get_match_data` over `of_match_device` Retrieve OF match data using `of_device_get_match_data`, this is cleaner and better expresses intent. Signed-off-by: Aakash Hemadri --- sound/soc/ti/davinci-mcasp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c index 56a19eeec5c7..b26e8d324078 100644 --- a/sound/soc/ti/davinci-mcasp.c +++ b/sound/soc/ti/davinci-mcasp.c @@ -1881,7 +1881,7 @@ static bool davinci_mcasp_have_gpiochip(struct davinci_mcasp *mcasp) static int davinci_mcasp_get_config(struct davinci_mcasp *mcasp, struct platform_device *pdev) { - const struct of_device_id *match = of_match_device(mcasp_dt_ids, &pdev->dev); + const struct of_device_id *match = of_device_get_match_data(&pdev->dev); struct device_node *np = pdev->dev.of_node; struct davinci_mcasp_pdata *pdata = NULL; const u32 *of_serial_dir32; From patchwork Sat Aug 14 20:19:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aakash Hemadri X-Patchwork-Id: 497508 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95D5BC4338F for ; Sun, 15 Aug 2021 07:33:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D655960F4B for ; Sun, 15 Aug 2021 07:33:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D655960F4B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 50BBD175F; Sun, 15 Aug 2021 09:32:15 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 50BBD175F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1629012785; bh=ELOrCrxxSvepq20ajWz0gXhUxw6h2FtUG4s1fnJY5G4=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=frKJ7VEa6P2mJ/VniidJj3N1l/o+XzLSrP673AxbPDiRh6XO4aX5ZpLA8yWMIRXhJ YJTT6aAk3nG+atw9aJnNHgGjmxNNqtr9zATzYbyKF1m2TSVBmJxwbWLJMRQEP4vRwL tgnAWnnNIrAynQzVr/WwyeD46cxLNM2Df7aUPuCE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id EB9ECF804E5; Sun, 15 Aug 2021 09:30:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id EB5F0F802A0; Sat, 14 Aug 2021 22:20:03 +0200 (CEST) Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 166A4F800AF for ; Sat, 14 Aug 2021 22:19:59 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 166A4F800AF Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kf1Tbb+9" Received: by mail-pj1-x102c.google.com with SMTP id w13-20020a17090aea0db029017897a5f7bcso21087532pjy.5 for ; Sat, 14 Aug 2021 13:19:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ePTL3Kfj5FpJJV64v2XN6rOLtZyUMBX7KPr/SFojksg=; b=kf1Tbb+9UkthXULcv3jhomGwS7YOaN93jx1dbvVp5WKHs3Q3VKpqI4KneToozvnGbn xOUpiYJ2ZhfqJCf7B6/EMySTahTt7PSb3RfPqxvXdn0/PH/AQmpn6h3wZHUd1LmcRzlY fZ5t7t7+HeDK3ZcU5qTbB2inVDgcrgl0/HEdR0evMk04U0oWHGh6Hc6aQvYFkavzeuJM kGIzdqdFsx9RvpzGskzn5vGgTLHsBNQ46dn1w6SlNrxgCRRKlNwEflNAeFisqZJZTJML XctKMJXM2JZ/QQCwBM2zKfpAFIQeTUE0emm4JIHA31wYN4yKZKbKjiyPgoAR4UqC3jzy JgZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ePTL3Kfj5FpJJV64v2XN6rOLtZyUMBX7KPr/SFojksg=; b=D7li3kcHYIk9DG6LoO+DL61EmoKb6l+YhIdC/HvQFd4z2D+S8uRYiHH6tGwL15+gjw 3HU1UTKHNMvT1jx0DXu+y3WmQaysy90pLRjjYwMFQVSGyoOBWwLzZ4s2ZyZVjjkhiNvV m+jm/5N4ovs9HlzFmN8XWZSuHZLTrcO0Lf/aQK1EUuCeXoQ/PG/GObjJKqFzedc7uBiF UkiV23S9+Ip6jsG873O0Hp25PIRlMEWgSCCzGPdOEVpAxrxE2Y8tvpu+Fc+X5YPi/K0v v9kNMevvG68OqPf+HFfEm7g5v4w3TS2As1v+w4oxjBbk7MnN5lTqvTuKoqXEis4KcWjQ urmw== X-Gm-Message-State: AOAM532Pmf/QOe5JqSAj6Aex1TqPltH2IBbwYNL+sGttvDNZU37rcck4 /V1bN/3m5eNVzSUTD3iYwno= X-Google-Smtp-Source: ABdhPJyd/i/l/TfPZNQZDIBXG+aOMRplp4tSWMwKxKVFpTQcDZmEXsyQt7VWpnVqVcUm3RyklrgM/A== X-Received: by 2002:a63:1352:: with SMTP id 18mr8066688pgt.348.1628972396713; Sat, 14 Aug 2021 13:19:56 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id u13sm6413121pfi.51.2021.08.14.13.19.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:19:56 -0700 (PDT) From: Aakash Hemadri To: Peter Ujfalusi , Mark Brown , Liam Girdwood Subject: [PATCH 2/3] ASoC: ti: omap-mcbsp: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:49:40 +0530 Message-Id: <44f3b21198dd1e40e1e5e783db2b3dd76505b562.1628972198.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 15 Aug 2021 09:30:27 +0200 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Shuah Khan , Bjorn Helgaas X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Prefer `of_device_get_match_data` over `of_match_device` Retrieve OF match data using `of_device_get_match_data`, this is cleaner and better expresses intent. Signed-off-by: Aakash Hemadri --- sound/soc/ti/omap-mcbsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/omap-mcbsp.c b/sound/soc/ti/omap-mcbsp.c index 4479d74f0a45..fcb651487854 100644 --- a/sound/soc/ti/omap-mcbsp.c +++ b/sound/soc/ti/omap-mcbsp.c @@ -1373,7 +1373,7 @@ static int asoc_mcbsp_probe(struct platform_device *pdev) const struct of_device_id *match; int ret; - match = of_match_device(omap_mcbsp_of_match, &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (match) { struct device_node *node = pdev->dev.of_node; struct omap_mcbsp_platform_data *pdata_quirk = pdata; From patchwork Sat Aug 14 20:19:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aakash Hemadri X-Patchwork-Id: 497695 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E7DCC4338F for ; Sun, 15 Aug 2021 07:34:17 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9A68460EE2 for ; Sun, 15 Aug 2021 07:34:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9A68460EE2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 2AD43177B; Sun, 15 Aug 2021 09:33:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 2AD43177B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1629012855; bh=Um+j3fWsJYJbipjrM90N2ckCHT6pDYYn9vhIzYJj6tM=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=O28agsn23rpTz3HIe4fpIdstFZ8xu2RRfMIuYzzIKlzNvi7kBzV9zjOvsIqjXWATf bKXe+Wlof0pcEq5CxGrs52UKIU3vvzp5G6osywNij470mQ949gvOOYqPXyKAQvwlx2 Seo0GGYJgNtMjb4Jg/SlMRc22g06CDR2EFBsziBY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 83323F804FD; Sun, 15 Aug 2021 09:30:38 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 83A8EF800AF; Sat, 14 Aug 2021 22:20:10 +0200 (CEST) Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id DA2F1F80127 for ; Sat, 14 Aug 2021 22:20:02 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz DA2F1F80127 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BE2s+NqE" Received: by mail-pj1-x1032.google.com with SMTP id u13-20020a17090abb0db0290177e1d9b3f7so26057980pjr.1 for ; Sat, 14 Aug 2021 13:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hvKMQmOLj6OmKuLluvPksBR7uMBeqMOloBYYGumCRK8=; b=BE2s+NqEn4DbtEps+vzNh1JAevWZM+ii/JtaK0P+fMlRBIjZOdbdfRMfP8e9tjUlpx P5e4VgIRXGtvSqDkbasFfH37FOOu8ieIi5KwK4sq8sXoChap+DF6ND84F+FIjp+95CXi 0xQGrnAUXUBD/gJ1hFbo1ANodVcxw+HWctQJvVGU4neUfE9Ow/eWKCOt+ABIH38uu+GV BhboIPUGgQ3yuEEka7jeCF7eKR7UJt9oW1usflutpkBQ5QZCcjMFFOULfwNoaODsbtLX nwjkYJS03kZlexIMT2lgIxpbukNSOGfBbbcAOdo3YjU8rIg0vy10N+myueD/D2IrfdU5 uA9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hvKMQmOLj6OmKuLluvPksBR7uMBeqMOloBYYGumCRK8=; b=ZxfENR17OPrhPENI0GbeNqM4gx3qfBm18+i05oQreP8U2dY2JvTu4r2aHKYUIZ1p9P DsuLJ+6ozzwl0l4vPMVrAnGfI4z1oS6snuGX8ciZhGcTSmlg91aaZEUaPXGpQO+KQNL5 Fg62zhK7i3zLVq56qD5PfLuM4Fn/iOwO+GXWdO4Vt9lN3HE/ezf0GKf4/vcwDrVNsY6u /oTrah9KqI4R+UULvLvueKimlNoLML2lxWkGD7Lcq1ciZ1hQ9Hc/1+LRasMTEwbcKD8+ y+S+d3sXujbKkcBHKBICNi20DjSUFI460Y2sKc3to5YSh+uhluMuPsLxbpznlbPAp7uz Xpzg== X-Gm-Message-State: AOAM532JhMipDXg2v0PhHvqR/Ia8UyXJxKd0u7dWqWZZX2Sw3fquGCN6 AnZLIpw7o8NEBD1T1mchrlE= X-Google-Smtp-Source: ABdhPJxA06VZoHW86ZtZg2aIgjU9cv15c2XHAQctF98Bsnsi0yv/B8oD8+fyzzFL/ayLTD6Ao1fvng== X-Received: by 2002:aa7:8503:0:b029:3bb:6253:345d with SMTP id v3-20020aa785030000b02903bb6253345dmr8259509pfn.35.1628972399802; Sat, 14 Aug 2021 13:19:59 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id u13sm6413121pfi.51.2021.08.14.13.19.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:19:59 -0700 (PDT) From: Aakash Hemadri To: Peter Ujfalusi , Mark Brown , Liam Girdwood Subject: [PATCH 3/3] ASoC: ti: davinci-evm: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:49:41 +0530 Message-Id: <6ebb350fa8a960b8775ce324b7786dbaa865a1c8.1628972198.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 X-Mailman-Approved-At: Sun, 15 Aug 2021 09:30:27 +0200 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , Shuah Khan , Bjorn Helgaas X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" Prefer `of_device_get_match_data` over `of_match_device` Retrieve OF match data using `of_device_get_match_data`, this is cleaner and better expresses intent. Signed-off-by: Aakash Hemadri --- sound/soc/ti/davinci-evm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c index b043a0070d20..bf13f3d25cec 100644 --- a/sound/soc/ti/davinci-evm.c +++ b/sound/soc/ti/davinci-evm.c @@ -389,7 +389,7 @@ static int davinci_evm_probe(struct platform_device *pdev) struct clk *mclk; int ret = 0; - match = of_match_device(of_match_ptr(davinci_evm_dt_ids), &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); return -ENODEV;