Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1396131imw; Tue, 5 Jul 2022 08:44:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uEIgzPyc6VZrb3+KU1DqjaQHdAW48POT8UZQu8SJ4bAbB6BuRm7I+J2JgGhYvfQrfkjvVm X-Received: by 2002:a05:6402:84a:b0:426:262d:967e with SMTP id b10-20020a056402084a00b00426262d967emr46202729edz.286.1657035847840; Tue, 05 Jul 2022 08:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657035847; cv=none; d=google.com; s=arc-20160816; b=Xv4dqCN23c+GC8r9kxIOnx0TawjenDwUvFO5PSzIf6lLN24Ve5bK9kRrab8ws34oV4 bpinvTTcxRZc2rh1zRWMtp/+bYB6RAwrQIFr1HIcLXUq0a1IB6AWuoXRmJiAGd/kFvUY KBdkeKVOIjG9JZWzBbS41talNC0MNj1/jNwUhiWtwpjq+M2G/42om3MvXMWpdW0BTw3N 71msRI0PhfHl3ZnFk3HNa2HC2Kv7trZaw9OcelhqM79XX7svFJ1V/wTefklkKjifH/Cw miyxALDflTns0C89uNErn0pI3iz5ZzLXX9UTxJGXeTJumf0k8ooQKSDsfsY9LsIhaL3h iAsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=wk5Y25/dUa+IXHDUL10teFIgK8kNUBO1oeMMo3Ill7A=; b=kgQhZD0R8GMliBWIPnmVtmyFNovJRkh0Y9OMnoeJoY9MZ9xgDRURE8FizdvXnN2AlU Op/TpC9VLDEn8IUPKX8NjrN+I+8baz28Oa9PXPE96YfY724zegjjWxgdmXHIk9GPEO40 lvkSlaliWPwVd8FhToTN5IE89FPUdJROlkm21jEdjXp/O482A2eFzNDh8C4og7uoDfwR JtQuEnxae+4w3RNd/iKOZCfVVdT6KDd5+5KBXtnT114eDNgLndNfFoHWi8L2Hlyh91B5 ghRyalsIVdrqoxObG3Y4h9z4uKvULbJGiCL6UObNL5CuwSIzBSap2IPOXkEjTrvNik6O 0PbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GsAVWt2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu22-20020a170906a15600b00722d5b8794dsi11382810ejb.308.2022.07.05.08.43.43; Tue, 05 Jul 2022 08:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GsAVWt2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231515AbiGEP0T (ORCPT + 99 others); Tue, 5 Jul 2022 11:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbiGEP0S (ORCPT ); Tue, 5 Jul 2022 11:26:18 -0400 Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7FA718E1D for ; Tue, 5 Jul 2022 08:26:16 -0700 (PDT) Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-3137316bb69so112226817b3.10 for ; Tue, 05 Jul 2022 08:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=wk5Y25/dUa+IXHDUL10teFIgK8kNUBO1oeMMo3Ill7A=; b=GsAVWt2RcePWEhCXpNuMhOCPB/Hj0hjOSc8fcr//l2a2j40bz/A12CPiM8+rQ2cPjK FE5x28RU7A1yUurjYhLkASsz48TuNZEr964a++b3qUwT0Dd+P2X5uC26c9NdiCWrj+kn caXUKSdiChQxkH5FlcxBpqu4F6jMfJsOKcOg2iC/om/w2HLcyM7dJvZegTcorWJCHyAm qxBmfiiWhnPwTHDdJf6wDI2hTxM/+hfs+I7+rIFVjP896vjIND+LDdG1DCSBHGgiIARa qPBhKXlPitQ3IKIZ0WQ4v7vL89DzX8YO5/crQ8+8uQAfT9uynVOAtYYUSU/cS08mijcM uBFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=wk5Y25/dUa+IXHDUL10teFIgK8kNUBO1oeMMo3Ill7A=; b=PZ5u/UVejzNto5HsYC28Th/voWUYFZjN84DBPEDgd4Rw1y4Bjdel73mWQFUzNMzjb4 eKeqEzYnFQ3MdnLPRnjDUfQHpQRQfU7Urs2n66VVfIclze5S4M3IkO4CAxEbIT3FDbft q839gzJ6LuLY/W1GimbiFpiuRx+mkzfjslF5spEenWgZ5RpvHaqBF9JJs9ROo3wvYKZ1 QAA67iqUSOg1mzbTlcOWsKleHXf4OrEXXpGi/4/y3Q1nztwo4tvqp+7mRADek6Xk8zJh iClAXWlTCbXuTqTgUgktjpHvgNFSEXczvYFTUQLfV0hIUP05iPX5zXrm+KmFsx0rnstT HV4A== X-Gm-Message-State: AJIora+e54QBEq4d2AdJOMalaG2F6QQ2sT5bZRRH/QNgWzLeYvHgz9XL zVQ+ty9mBtE38T1TlQBSN4XMXkXoiNYIM/Hk3+k= X-Received: by 2002:a81:8397:0:b0:31c:8a02:3f6d with SMTP id t145-20020a818397000000b0031c8a023f6dmr15794516ywf.486.1657034775878; Tue, 05 Jul 2022 08:26:15 -0700 (PDT) MIME-Version: 1.0 References: <20220703143533.62173-1-andriy.shevchenko@linux.intel.com> <91f156ba-5d93-63d6-5fa0-86614bc370d3@linux.intel.com> <21522ae3-96a3-ce07-6466-89cbf6c67a9f@linux.intel.com> In-Reply-To: <21522ae3-96a3-ce07-6466-89cbf6c67a9f@linux.intel.com> From: Andy Shevchenko Date: Tue, 5 Jul 2022 17:25:39 +0200 Message-ID: Subject: Re: [PATCH v1 1/1] ASoC: SOF: Intel: bdw: remove duplicating driver data retrieval To: =?UTF-8?Q?P=C3=A9ter_Ujfalusi?= Cc: Andy Shevchenko , Mark Brown , Pierre-Louis Bossart , sound-open-firmware@alsa-project.org, ALSA Development Mailing List , Linux Kernel Mailing List , Liam Girdwood , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Jaroslav Kysela , Takashi Iwai Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 5, 2022 at 3:19 PM P=C3=A9ter Ujfalusi wrote: > On 04/07/2022 19:19, Andy Shevchenko wrote: > > On Mon, Jul 04, 2022 at 10:31:48AM +0300, P=C3=A9ter Ujfalusi wrote: > >> On 03/07/2022 17:35, Andy Shevchenko wrote: ... > >> + return sof_acpi_probe(pdev, (const struct sof_dev_desc *)id->driv= er_data); > >> } > > > >> We don't use the desc in sof_broadwell_probe(), so we can just pass th= e id->driver_data > > > > I prefer not to cast inside the function parameters when it's not about= POD. > > Fair enough. > > How about assigning desc before it is used? As answered in the other email, I'm fine to modify the change accordingly. --=20 With Best Regards, Andy Shevchenko