Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp359291ybf; Thu, 27 Feb 2020 23:00:08 -0800 (PST) X-Google-Smtp-Source: APXvYqwVz63bXUJWntU5Wq8fo4SkJUFXrcmf6vl11bnhUqa0pUUt19WW+MjYgzySBHmJ79qFJ2GF X-Received: by 2002:a9d:7d8b:: with SMTP id j11mr2242573otn.259.1582873208820; Thu, 27 Feb 2020 23:00:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582873208; cv=none; d=google.com; s=arc-20160816; b=NlMbNiSNcaSvPCY386pAEjOBQ+9L0pTfChDkAzTZ0R5CIpKgAwy/HWlLDwX97KlmfL MESA4X64z+r84K2R9TgAYE37cSicZt1kcE/GUH9/dROhvogy82zvPOZbwsvCxUqhiI/G XPHfLqkanwu0UELpORDVY88wHOCZ5RzNz/doccd5K3KWygumoBl35kvYlGaICJa66xa+ CYu5K4edAfZzQW2xLLnblpJPxdNyb/ecBAWktqXTxjmvg4UjWot/ClZs8XSTSA+ejwoC OOJsChkAloGIj+g2qWK8OLckRM9m2etBIFDK0Yt04b8hwRGWten/ducSy5y0vLEPqP+k 4+yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=c6hyoD8zfmHfdvTYAWzSR1LNa/TqLChPyCgM+JY7rNU=; b=Y9EAFQxeUN+akNi1c/r28wX/uvhK1QvVALjBzyIwJLZJ0bykKNRWQrbwS1PJiycnqj A+FTZED5u/rT+HDucBgCUjZg7YnxX9fp0SjP9wxBkLdb6itWx43fRhRklZr8HM/aYef/ B9Gpy07ofUOwIX8SIs9gRedpTCAgI6m3mciQQBG3anQC59pcOXCwTZqT1lV+igkJk5NT 3RVVROoa4RHGcdFx7rZST2WT5W7Lla30PWQbW3X9eb96JDG+Or3yqib4vm65deSXn42b OE4iRAbZE4TxYu2AC0TF3pmIyxK5foPb2P9DGSs48hGgCfFmP+2Q+/4In5vY7QyOm8MK mjsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b7Eu1OiV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q124si1348130oig.228.2020.02.27.22.59.56; Thu, 27 Feb 2020 23:00:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=b7Eu1OiV; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726860AbgB1G7h (ORCPT + 99 others); Fri, 28 Feb 2020 01:59:37 -0500 Received: from mail-qv1-f67.google.com ([209.85.219.67]:40099 "EHLO mail-qv1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbgB1G7g (ORCPT ); Fri, 28 Feb 2020 01:59:36 -0500 Received: by mail-qv1-f67.google.com with SMTP id ea1so879012qvb.7; Thu, 27 Feb 2020 22:59:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=c6hyoD8zfmHfdvTYAWzSR1LNa/TqLChPyCgM+JY7rNU=; b=b7Eu1OiVC2aJps+SPPzuhzjoMER1rqPqa/VvZX29dIM7lR539TlgLa+v3GMZHBRQAZ eKx85GB9ht9NaHJX6T/qVdHk4UDIucXgAZ6/aTIRLJejLwfsNbAR9Vmt7SJ502TZP55S vEcKJZJKg3jJMQS7ipLyZjqQ8/4Lu6AuWQH60NG0cRLgtElo+6LZM3G144uugbn3JbGw aN1TMFE54ow0CXGU/EKnklzGqnXqBKBifIDgNq9Kwdebmqj94szrMo2DFayQGYxP6Nqi QjRJlEYjd9OZA88814HnrlYzMwEvul1UBw6wj8PovvjrQe6Y5v7z18EmT/zb+a0ydbDW DuLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=c6hyoD8zfmHfdvTYAWzSR1LNa/TqLChPyCgM+JY7rNU=; b=Z3DhWfVEArlGbA68QPpjFWUD4tB3U2kruTEfR4KKnEmY/+svqnBu/fZUSHKtDGK853 PkuRv42XHtgn6uGsP8Mti72HoxcYWBJqMs6JIRCA02wdQ7o/WSe2FIQVaqq8bEwX65nt jveRJ8eh5YvYPP2K5rTqod9xLAjNWYbW500XzD8Hzk2vPl74KF+R+wPlqEASGOCxF0kF VrHtUdOQlQcPBf03B6sIuskdAmkTbPIsAd/7Azk1IPzbYKrR7lGD4Ejyr+Ko5QTwLqlH w3JApIhm4dmQiNR2g4OQ7cvPrGt+0atiZNgw+7VeMLx7V0uYgZTkdnn1PADwItwPEA6Q FU0Q== X-Gm-Message-State: APjAAAV+Cs0bBvsCCOqv2oja6Te3LLaft73jw1GZQGb67gubVsbNHYf7 cNYfUYBBax3OhBO7r1qM5zsjU1fRTp6SBgy7QtM= X-Received: by 2002:ad4:52eb:: with SMTP id p11mr2292548qvu.211.1582873174403; Thu, 27 Feb 2020 22:59:34 -0800 (PST) MIME-Version: 1.0 References: <20200227183926.GA456@NICOLINC-LT.nvidia.com> In-Reply-To: <20200227183926.GA456@NICOLINC-LT.nvidia.com> From: Shengjiu Wang Date: Fri, 28 Feb 2020 14:59:23 +0800 Message-ID: Subject: Re: [PATCH v3 2/4] ASoC: fsl_asrc: Move common definition to fsl_asrc_common To: Nicolin Chen Cc: Shengjiu Wang , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-ALSA , Timur Tabi , Xiubo Li , linuxppc-dev@lists.ozlabs.org, Takashi Iwai , Liam Girdwood , Rob Herring , Mark Brown , Fabio Estevam , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 28, 2020 at 2:41 AM Nicolin Chen wrote: > > On Thu, Feb 27, 2020 at 10:41:56AM +0800, Shengjiu Wang wrote: > > There is a new ASRC included in i.MX serial platform, there > > are some common definition can be shared with each other. > > So move the common definition to a separate header file. > > > > And add fsl_asrc_pair_internal and fsl_asrc_internal for > > the variable specific for the module, which can be used > > internally. > > I think we can just call it "priv", instead of "internal", since > it's passed by the "void *private" pointer. > > And it'd be nicer to have an extra preparational patch to rename > existing "struct fsl_asrc *asrc_priv" to "struct fsl_asrc *asrc". > > Something like: > struct fsl_asrc *asrc = yyyy; > struct fsl_asrc_pair *pair = xxxx; > struct fsl_asrc_priv *asrc_priv = asrc->private; > struct fsl_asrc_pair_priv *pair_priv = pair->private; > > Thanks > ------ > ok, will change it. best regards wang shengjiu