Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp604309pxb; Mon, 16 Aug 2021 12:48:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSt3dkQGflNJqt2KG2aPFs099pZKLx9nCAbij8A3gJjOhIuULjB7PnRB4mTwI/5E9NOoRU X-Received: by 2002:a17:906:6ad4:: with SMTP id q20mr105384ejs.433.1629143315900; Mon, 16 Aug 2021 12:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629143315; cv=none; d=google.com; s=arc-20160816; b=CG+p76q3gBiVibjB7oDhvTc58X73FFxGRVTOLFxoflBfRuz5QR9i8T5zXN3bj9PBVr z+ugPBgJAiF8SJiuQBDVbH3sF3q52FVcVzjHznSitfRA/xDQ7FJZ52zdAuyoJPJCzK7L 7eWjUmQq+G+u7xkMhD4n39wwcACNOstLgLFKgdoLcPS+XwfaxaFsJiA0C5PkVcL0mudl TaR8/Cs/KaMU5AFwDROmNqq2+UyhJUlu4r4A5xcK431T/GZCtjrb+k+qbQBcFEyXJJHo lMCTadoH+96K1VxGIjGial2BOdcPXCVIPilZPBBuSZd5+v/z/a6XL1mV2db66lSzaBKU KSbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q5y3Diy0bSS1qtfw8LXMZxlhAkCPsRISdhkpjPubqdw=; b=piD7Tg1McrrCfgHvBxvySWmpD05jvSYjtVFBOCiWdCUQltTw2z0OFgcfrinXP2AgiW hLLoL4G/S/Nf7KAyLzdgQtP/9X5FWihLdRaLPult+FgtMI4UDXxb04t4PITcUEWa+ueU RYST8uv3LoPTFJwkEitbgooJXzfgoGhdlmCKHw7smSeX4Af3AbENE+cwFih05a1CPKH+ IST4GYXv4fAJ3uTzEm9bXXO9WGIWZC9PIV08osqJNTXXw/4nPxZzanA8pyQZUcnHr+23 0nPbcyLYX6eifPnCR4CRbIZtaHb4rdSu1308SFsz1b/dCJVwWZugpo5EfljDlFo1VZYE HfBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qzl2TNvG; 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 q19si71231edv.125.2021.08.16.12.48.13; Mon, 16 Aug 2021 12:48:35 -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=Qzl2TNvG; 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 S231247AbhHPTrA (ORCPT + 99 others); Mon, 16 Aug 2021 15:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231236AbhHPTq5 (ORCPT ); Mon, 16 Aug 2021 15:46:57 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2B9FC061764; Mon, 16 Aug 2021 12:46:25 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id nt11so28251794pjb.2; Mon, 16 Aug 2021 12:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Q5y3Diy0bSS1qtfw8LXMZxlhAkCPsRISdhkpjPubqdw=; b=Qzl2TNvGY4kPSuJe2Kx778muWJ3IC/XdfyAQtvUDaGu+uehK9xfVadHtHQwRyJtum2 zlnbEFbnVJ8q6LMdFTxLh3gIzLDITPoWRgb6SqwNj0hsbDZCFoWt62ZPJKqneIwDEiaZ hhevSHMteX+wgEtoQTK9c42dknM/uL5zAnKwaRIb3yBnMNe69xVft3mEQSnKS/sThekB OPQPh2RYkZFuHir4l8kps2QOdTc3oq6cn8Yk+L/nDQr3cjdpzLjk+GoUPBThnoRXfEE1 n8kVdkhcAuF/0ikoseAmEPpE8iOn0X6SwuvblE7WT2uYAQAzJ8R9X/M0kBfNph385y02 EmEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q5y3Diy0bSS1qtfw8LXMZxlhAkCPsRISdhkpjPubqdw=; b=FTdb+ni3UOj1RGI+NMMnSbhfafTgEBCqH09XpCz6rkTctGBIpWW5oEDE40NKGxHC48 mQUs1WeRu6YCa2xrfQv9r66YAMd1Ppz5Ag96nbXI/KmSQ91+mudAzt5EEtHXjlBA5WTZ o+S/uyvyNE9f50gptB1+YJguBemrgUD7L5uQpVE3/6BR7q33MzZgNNl2uDtuZrft1Hxu nL7bdgKQ0fqri36X/uOqk+9bpbPAjv47QlogBFNWF0xZMo81Aw5wrnYuqjJ6cqmyvlJl 3OjsFVx5cfVtgl1HqeacXUOwItTVPGljQmrxorz0yb03upq3jOjg3YiUtwCeTKRmY2u8 Scew== X-Gm-Message-State: AOAM532TW2noc+tcesuBZ0xWey9J1W35kwzW79zAak66Rzf0+XgR9GnR 3vSXoqjYtfLtsPvh1HXTcdk= X-Received: by 2002:a63:d14c:: with SMTP id c12mr435187pgj.412.1629143185449; Mon, 16 Aug 2021 12:46:25 -0700 (PDT) Received: from localhost ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id r9sm181910pfh.135.2021.08.16.12.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Aug 2021 12:46:24 -0700 (PDT) Date: Tue, 17 Aug 2021 01:16:21 +0530 From: Aakash Hemadri To: Mark Brown Cc: Liam Girdwood , 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: Re: [PATCH 1/2] ASoC: tegra30: ahub: Use of_device_get_match_data Message-ID: <20210816194621.mrudqykxvkbt3a2w@xps.yggdrasil> References: <20210816183906.GC4253@sirena.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210816183906.GC4253@sirena.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/08/16 07:39PM, Mark Brown wrote: > On Sun, Aug 15, 2021 at 01:42:18AM +0530, Aakash Hemadri wrote: > > > - match = of_match_device(tegra30_ahub_of_match, &pdev->dev); > > + match = of_device_get_match_data(&pdev->dev); > > if (!match) > > Thierry, are you sure about your review here? As others have been > pointing out of_device_get_match_data() returns match->data while > of_match_device() returns the device. Sorry for the confusion, and the glaring mistake. Will fix and send v2. Thanks, Aakash Hemadri.