Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp484936pxy; Sat, 14 Aug 2021 13:15:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEEx7qaPlA+r0fPH6Rmlr4LZv4oaGoxvr266PC7mlYLgPCzpP0c8kQqAw28BkmdncW4Cj8 X-Received: by 2002:a17:906:455:: with SMTP id e21mr8922063eja.310.1628972124298; Sat, 14 Aug 2021 13:15:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628972124; cv=none; d=google.com; s=arc-20160816; b=iZ15pU4us4Ooelt9mi79Sh9M9nVMUmJxXIahos9WLAaJr2r+Ykd1PZUwcZvo26aE7H s0EDqT7X1I6jcgattEYAxsPj20Q6e5mKUIWpH/ml0O0GeGdbidvPY8370fhRAGgL8fZJ IcEc0qGcs6Bt+QzFY3KlWDJuoTWggl4K7FASSHKCNOrjcMjXMFIKo74gDpwAagRqO4BM ARtzmT81JZDoUUs7qlMs81dKvIl5OvVr5KVbR3dugwOBpQmcDcX2nitye6xnqzJvZ8ye pf2wdUOCXx73rjiBegewbIW5PgzSgIsdPZikZfhUOEhufRTjJI1NhhacGwXz6bakILGD wspQ== 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=lil9AoIO0pvXft/wgCoMRBl14pUNq2Bwl4VjQXc1qVI=; b=hCWU0whWSXdhvBaGpINugfpQvdzi5TsT7mg54iROOd6TQjpKm7x780xaUUcB8ZSGus Asl6Ap0bHO9drwZqUs4orm6AKJ2ogBQY733Ku7HI3LSwSeRachvtvfYBw/CNpb4nqlSe F/gtyVBSV/qvXJPBxIoRKFFXLaO9O44f3bZIk40KPajqRL2f16CZ1D9Sm7HrPwPyxXRn zdCMjZb1WXCIAhe/YcVgESsGgOmXKINTYSC3dFpMyoL+p+Y6BCkg8HpFcZvGFEKi9KwP 8xBaxOPmVhUmwr+hqyz9VQhQ1yEQxznSVoCIUC6MYNbmk6StMKHfSBjrak3ENs5V+yrH Lg1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sVw7hCV8; 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 jz19si6761782ejb.599.2021.08.14.13.15.01; Sat, 14 Aug 2021 13:15:24 -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=sVw7hCV8; 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 S233464AbhHNUNV (ORCPT + 99 others); Sat, 14 Aug 2021 16:13:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233256AbhHNUNG (ORCPT ); Sat, 14 Aug 2021 16:13:06 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59681C061764; Sat, 14 Aug 2021 13:12:37 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id fa24-20020a17090af0d8b0290178bfa69d97so21165115pjb.0; Sat, 14 Aug 2021 13:12:37 -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=lil9AoIO0pvXft/wgCoMRBl14pUNq2Bwl4VjQXc1qVI=; b=sVw7hCV8yRTqkPORb847X6o48bQC2n0dn45Eh7Lyqtd7a39t/SEH/EtoSSngFP82GN So162zopl0Mfj7ghGwdyPWKUnows5xRA/kDf5CHjikzrj1LwvaGtaO5hgmJ8LPri+Jas XWqJ25D+g6NCK+fpXa2ZML8Iw2F0W8825kuwgtwXZ7ymBhsNw3C/c79RqneE/yCvp1b2 g1EOY1X70c+kZj+albuZp7XnUi8ODg0Qhd8EB2JT0Skz3ZvqGiDYW0WOwDrs01azprdA 0NdvaOxSuaaWQaFy79GEurrwCVQ2p/k29esGGmSFr9629L3YSMWxGXsXQClRsaUgeVOL QCbQ== 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=lil9AoIO0pvXft/wgCoMRBl14pUNq2Bwl4VjQXc1qVI=; b=E2jFJc5zaULbZ6XHp2pchlMhsdrulw6rQdXjs0704v+AhxR2dSO4guwoG2ZUNEXddB MFMD0GuRaFA3jPWSVGtrU6zFJYPcv4ttJBpVnRoKVEaNzvb855FWvi3FpGGJSwK7vXvD kzpzA156PVaLlCU3FdROb58W+9GoJxzGtzNyjpZ40WLEailvHtphpGg3MTAAgyZRpkU3 /XI30bIrslAhv1Apj51aoTQRLwa+IX+5tqB/XGDQUiCALDHFKyyvOaF+nopvGr0CSjkG ROGOu0j+tgibBveKh+gg2eTH4K/pRtkWyL1H5+UhL/QHwzFpTwOn2J3CFyIy7a8JC3Nv /bVA== X-Gm-Message-State: AOAM5320iDP//cFP2BYhCfk3/+SUuHMgSMOxYxE27OgVvm0wBjbXAppq Ajly38UK2RTjU45bII9e660= X-Received: by 2002:a17:90b:395:: with SMTP id ga21mr8974448pjb.159.1628971956923; Sat, 14 Aug 2021 13:12:36 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id u6sm7309420pgr.3.2021.08.14.13.12.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:12:36 -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 2/2] ASoC: tegra30: i2s: Use of_device_get_match_data Date: Sun, 15 Aug 2021 01:42:19 +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_i2s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra30_i2s.c b/sound/soc/tegra/tegra30_i2s.c index 36344f0a64c1..d4c5594efaf1 100644 --- a/sound/soc/tegra/tegra30_i2s.c +++ b/sound/soc/tegra/tegra30_i2s.c @@ -418,7 +418,7 @@ static int tegra30_i2s_platform_probe(struct platform_device *pdev) } dev_set_drvdata(&pdev->dev, i2s); - match = of_match_device(tegra30_i2s_of_match, &pdev->dev); + match = of_device_get_match_data(&pdev->dev); if (!match) { dev_err(&pdev->dev, "Error: No device match found\n"); ret = -ENODEV; -- 2.32.0