Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp485797pxy; Sat, 14 Aug 2021 13:17:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzShLi5Du6A5PvaSJuN6Lat+mKq8PRTs6mwJOz1HrqLfR9ClH4FUsnf7Sdtp0a54Y8z5akE X-Received: by 2002:a17:906:cb11:: with SMTP id lk17mr8533670ejb.271.1628972238423; Sat, 14 Aug 2021 13:17:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628972238; cv=none; d=google.com; s=arc-20160816; b=DW7fdaOY2Yok8/5ldXlhpOwSAPg1McIeuoYEcXYhiol2emAF64AKTQJ86peaGoXDYK tSDWwnAwQWC6QUowXv5imj3IvXIfgy/GItjxjBiNnB6wOSkkqmcX0j8SLfEbsPOkSMyN HAEBYJKCwjqQaBooTLuaUMnA900WXgj+fxIqsrguOJbiRPjvlVJH0Hb5JlyhXbUMv4Gl D1sRtlFGupbvcr9XMcCOkD2p5t5Ot1VTgARxKis3/vUVxcc8sZXomL4gVQP/wpCU4LLu 2akFNYITVvS8a6aurZiGdpcJRcuOtIea51XWPVAYdxyiaiBkwpwgQCux1m2dgB6Gv8wR NIbQ== 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 :dkim-signature; bh=r7fFFu/BvwqmhomKLq6d7HbwgBUteESf+Ymi2dOxs6A=; b=O5DG+19bvkSIV5bCMY/dJzazJD2cp0ZkmzUpREUYqub4PwR3ZpEM1ZPBQdQs1KNB+j WZSUQiRv3sTRsVdw7QDSwFgV2Dn3Mzu2rRPkMmMclmGpusyKRYcB542zAQ1R7cbD0nPv TFsVunugknzLmd3y5zKv+Mj20vVaw8OBB8wRyRS3k/ojla/3FPZFAZubwsHS5N+GSpPk ZZU2xO4Dcr7aX3TzyCiWkihlooOua6U2BDltV8eyBLUDZApknmib8o8Gfq3Svk2sUrFy AQfZe5tLCC9oYaJNyP97fKk9DhZMbhUb0jN/s3QCXOdmxKNvP1QIlEeHY9BH91SSJ6U6 8+HA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TWfjWcGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si5601758ejw.286.2021.08.14.13.16.55; Sat, 14 Aug 2021 13:17:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TWfjWcGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233647AbhHNUNY (ORCPT + 99 others); Sat, 14 Aug 2021 16:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233250AbhHNUND (ORCPT ); Sat, 14 Aug 2021 16:13:03 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6684C0613CF; Sat, 14 Aug 2021 13:12:33 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id a20so16267283plm.0; Sat, 14 Aug 2021 13:12:33 -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=r7fFFu/BvwqmhomKLq6d7HbwgBUteESf+Ymi2dOxs6A=; b=TWfjWcGJ171Q7ErtMyT3b7xDskqwjeOcH3Ctict/2YtewtMPFRd9MgWWLPBQWDSU1a iydcCHjbZ0YlC9ObYLKxUPxobJTPka9F8xviffsg8BTHZf6gfdKR+8VWxYegFYGtX7RU U24omsL8HeV7FxaP18a2OUiEz5LW/XoyaFsX72aJMisrEtDrNP/inrbWNrhwrZLRgtev j3pFF1o7N5Q9v3ELMXwcuM/vbDG+rPDGQP5LmVsP69HmCPwkI0caGyFMlU6NxyxSqhSl eQqsof2tshXmojeUXFGnBbrpdWMJ+BFwc31NJMUzwd1ZCgkmIfBnBUXwuWJKp0369v7r fusg== 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=r7fFFu/BvwqmhomKLq6d7HbwgBUteESf+Ymi2dOxs6A=; b=gX8HUwPLy0cT7O+pdcwhc1liEwb/jtBE9Bn0nWHZJT1MeqNyokeVNwJiBtAY+GusFM /znfIhS/UdMOWiKYYnZYtV7ehKWyIZU0Mwsx2fk8x954mXhEzHrYJHSppP0NIw3PBR4r g9CPGXNeNaViPro3kageauzrMCS0Q6ttUNck8Os3oIAMYhUHcsVluj9m792oORdZDmHc kAB8vbGRNc3TYC4iOCRMaFMMoER7HqPVpw/bH5tvHQLt3ZUPg0wqyDM0LnL8ZlFIejQN 1CYpvPZZHz97WLvCsBgfmGg51U8j9o8Zz2udp+CZeIU5dlHh8/BsyCf1Aveq15sUTn7s GJCg== X-Gm-Message-State: AOAM532lIKvrQyttdNjbq+XGpRpraeDZ9aCfXJPEsexOw13SOpGlVr0+ m5CDPJny3XgagfOi0olw8Fg= X-Received: by 2002:a17:90a:f186:: with SMTP id bv6mr8907473pjb.231.1628971953301; Sat, 14 Aug 2021 13:12:33 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id u6sm7309420pgr.3.2021.08.14.13.12.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:12:32 -0700 (PDT) From: Aakash Hemadri To: Mark Brown , Liam Girdwood Cc: Takashi Iwai , Jawoslav Kysela , Thierry Reding , Jonathan Hunter , Philipp Zabel , alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan , Bjorn Helgaas Subject: [PATCH 1/2] ASoC: tegra30: ahub: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:42:18 +0530 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/tegra/tegra30_ahub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra30_ahub.c b/sound/soc/tegra/tegra30_ahub.c index b3e1df693381..0ac109b32329 100644 --- a/sound/soc/tegra/tegra30_ahub.c +++ b/sound/soc/tegra/tegra30_ahub.c @@ -518,7 +518,7 @@ static int tegra30_ahub_probe(struct platform_device *pdev) void __iomem *regs_apbif, *regs_ahub; int ret = 0; - match = of_match_device(tegra30_ahub_of_match, &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (!match) return -EINVAL; soc_data = match->data; -- 2.32.0