Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4412820ybb; Tue, 14 Apr 2020 06:52:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKP8CPbI4ygS4Mf+VHgo9qGTI2TY8rtxKtmcEmVg6vEO0G71Zjx6Y+UwJ8FgTthW+dU8v30 X-Received: by 2002:a17:906:4351:: with SMTP id z17mr194638ejm.346.1586872353809; Tue, 14 Apr 2020 06:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586872353; cv=none; d=google.com; s=arc-20160816; b=ajPzDuyhQXZ+BavIo9u1ZMq/jv8O5DvrRLhDs3B1mTFaF6cyIHoaSwgO6lfDluOjPk mjZgoplR57MgGLQrUDxYIialOZiTcGvrtZ88EnP+IhdHhofNmbwq7nwYASt5fW10N9F4 mb/BnD4U3hAwOrnlZX1R5sqCIR96LC1OLeQ49S3iOdyjWId4Qv1wpDVzE8NBaumkBcY1 w8pQdace5sOj1/B/1hFzzJTNYEOn1iQN5gXbzOVo0is5jm4sVw9/Ki2zmSYdhPlyJtKQ 6RtZEM2oXa8b2ZEv+JFbA61eCf0wcNt26yPMaGJhuYUIQSWknfDUu+UyCBHer6K0Mbvs e34g== 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=awmGrwmcz5aeG6k8MhFEgBaKuoZUeZk5jIB18zmrVt8=; b=B6ogllGcvCgYmvEPnT57oc7vh6+6V5Si56S4oEcptVUxnc2SYEui/5WMOw0KOHXchB 7agsQHGbOPsHwsmvH6IJeOSLRc6DrDnnsVbHeeLAi08t1yUlM3ruXZoMLDKdwEcHYCtO nTdSEolI2gko+/diOpcdvpU0mHivCPHKFt3+NGYbDxrAU2SLVCfN/cczC+FW+/cLf1lA KN+ZaTkEv4DXXaxrrc0xzKAC5JSPw/7GZJ6BkZVhb+qVMcelAZEB9DooxrtLaO5urKrb FdUSFintu8M5+QDzvoM9SfJJbwcaq6rU1i6d6IYItECkwLE0GjdkFkFvbQLpT6g0tUxT Umuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GG1kscR7; spf=pass (google.com: best guess record for 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 s18si7835704ejr.449.2020.04.14.06.52.09; Tue, 14 Apr 2020 06:52:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=GG1kscR7; spf=pass (google.com: best guess record for 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 S2404072AbgDNCWH (ORCPT + 99 others); Mon, 13 Apr 2020 22:22:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2404055AbgDNCWG (ORCPT ); Mon, 13 Apr 2020 22:22:06 -0400 Received: from mail-yb1-xb42.google.com (mail-yb1-xb42.google.com [IPv6:2607:f8b0:4864:20::b42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FA54C0A3BDC; Mon, 13 Apr 2020 19:22:05 -0700 (PDT) Received: by mail-yb1-xb42.google.com with SMTP id 11so6345082ybj.11; Mon, 13 Apr 2020 19:22:05 -0700 (PDT) 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=awmGrwmcz5aeG6k8MhFEgBaKuoZUeZk5jIB18zmrVt8=; b=GG1kscR7x6EajZgB+6nk3ksaoiMBiXTRMW0RaFD4RVIzeNEG4w0De5NWOLiD4ZLDG1 gh7sO3nE30kQm9RhUlQU2nmzKEFmx7yhpYtim9eaTvXRuoNDSKjvdZIPvkGEg5RU1yjy 4xjPgyvrVc/mhQNNfQhayQTfJt46Qo5ykXU7RJfGw5LrK/i3oSo66RQfghLTbMgxMwzr TdLVAi8sOZMxaIg1oDg9vLTkiXtPed9UEulCMmWT503xsa430fas5vWruFU2s5+Mkk4n 2QLA8SAJiaMSgRY5Yn66oRn2D6mpzmti3qOgFglKKGr5u62ckvtW6SopqvesdvS3oEPS bfqA== 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=awmGrwmcz5aeG6k8MhFEgBaKuoZUeZk5jIB18zmrVt8=; b=ICJd/osEbfF0iKYdW7gRrylDOoDnjlqc0dOM7AiSoqw0CR8S6CE3n4fDo5lJfSPMaN rByCijKRr3W0R2H7HB99IiLOIZyb53gKnZL8xuFavn87gdLNH+ztcSi9c4UBZ2i1lIs1 ISE9YiVlzRmoz0bANARWgYU0iFno64tm1uXsJkCmNpOjkZ4Lo85/tIYWFrkFZ7mEfwBm GLNu9cJt1u6GSPX2FLwkOKC6CMld98vnysJHyYM8iBZJHTuSqh0kEg8W4Fh9DNht/w2J V4Q9dXs00NtanrwK8CS8a6f42k/fJn4JVyvj96DfOYZt5raAu8CltAd4hVz/y1PkfW5G NTWw== X-Gm-Message-State: AGi0Pua7QKsPG1yU/WJm/PMRMDZGwpO/S6mWfUSjBSdbYNfUorOS7n1Z D8Q8o26uwshu+rIZnp2Il2+mK+XlwqpVAlXZFTKwlcxk X-Received: by 2002:a05:6902:4a2:: with SMTP id r2mr32195235ybs.60.1586830923366; Mon, 13 Apr 2020 19:22:03 -0700 (PDT) MIME-Version: 1.0 References: <6d2bed91bcdbc3f75a9d12ac4ebf6c34c9bb9c3f.1586747728.git.shengjiu.wang@nxp.com> <20200414020748.GB10195@Asurada-Nvidia.nvidia.com> In-Reply-To: <20200414020748.GB10195@Asurada-Nvidia.nvidia.com> From: Shengjiu Wang Date: Tue, 14 Apr 2020 10:21:29 +0800 Message-ID: Subject: Re: [PATCH v7 5/7] 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 Tue, Apr 14, 2020 at 10:09 AM Nicolin Chen wrote: > > On Tue, Apr 14, 2020 at 08:43:07AM +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_priv and fsl_asrc_priv for > > the variable specific for the module, which can be used > > internally. > > > > Signed-off-by: Shengjiu Wang > > > diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c > > +static size_t fsl_asrc_get_pair_priv_size(void) > > +{ > > + return sizeof(struct fsl_asrc_pair_priv); > > +} > > Perhaps we haven't understood completely each other's point. > > Yet, would the following change work? Should work, almost same, or do you want me to use variable to replace function pointer? best regards wang shengjiu