Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp302405imw; Mon, 4 Jul 2022 09:26:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sIpV+VHhwTBOqx3/0nsm7zC4vVPoXkO6te+8nhHZvlVdowjWCCTXqiSvhnYGKhB//hFMqD X-Received: by 2002:a05:6a00:148d:b0:528:3d32:f111 with SMTP id v13-20020a056a00148d00b005283d32f111mr16760734pfu.31.1656951991500; Mon, 04 Jul 2022 09:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656951991; cv=none; d=google.com; s=arc-20160816; b=CHpDlYjfUVwURDgF+PtfX+jIN1aRLQ7r3IVnUEA7WgMjXWPVJfqjQWQAsX33ybuAEq RXMVExDQs7njYQnDzG9DaN8p0FWeRjwoNzOncr0PXzYxGiUTNvynUjsKoaLpwqYUlxJd jGKAlecL6hmngpZqzryoRRBanzNMW6ESLxCMo+/tFO8ojgaFJ9VNPyDBvbw0L/i5KUYY A28G3LSY2I6Pj0RJBtklYmqkt5MtgtQn59hy/ncbpxO6Bz+YWs9EJOQxAIYrwvpO8ZAb m80lwRE/NEi0otCG2DkDj6Rg84aZ9q1kdGp9oS7AiI14f97xnGuRaSoFU6rcMMspOb0q 3oDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Ca+dSm/5nCe50fWoXXsDkps3nNqd6MignCN60ErSZA0=; b=yBO7csxc09Bfwovao/8w4pTCHP3E5IEecPzDyB9c7Iy94GZ1bEZuPMq5eITP9rXcJg YFmhoZCOpiMm20P8ABrKcFlPq312eUIGv+mkWoJaZwsTJgTGAjD4Yv9CPzeRHKjNi88+ Ov08LnFpbe17Nekx+3YMys4xkI54Wu2u+Heam4PN+2DQwIh1FK3e9feaOZ/v3Ty8mkHD l4bk/2LJsNEpb1LTGYopz57Z6dz1v9/tqw1x9UCHNFjP0GEbXJ9BUsiv7BxQBX9FPa8z 7eo4vkl4PHZlSlQ3X9unE9trNbt6f6YD0QoVvuG6ZOtzyfmE0QpmZ5tO7mNDnbN7QkHY qEtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LcqoaK9T; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170902e94f00b0015cf4f37e4bsi15048146pll.610.2022.07.04.09.25.56; Mon, 04 Jul 2022 09:26:31 -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=@intel.com header.s=Intel header.b=LcqoaK9T; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235021AbiGDQU5 (ORCPT + 99 others); Mon, 4 Jul 2022 12:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234997AbiGDQUg (ORCPT ); Mon, 4 Jul 2022 12:20:36 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5507F270 for ; Mon, 4 Jul 2022 09:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656951588; x=1688487588; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=aCKzmIiBu49W8RI8z/u3rSgsHu2N2nzoFiWnk255af4=; b=LcqoaK9T+eXXmd3vkdUkAqnBWK7/HWAWiJEEBQpVnKF1P340qdLDjpuL zoq3S1tq+yp47PrTuKMjEsaZi8WpcbfKgMvxNaCUOpkQk5UT1oOwWQhpt IxEJd86DPjPIABBVLpI87vUi1eDTpfqQFbJmH+Fr/7ZswLz/By3cxlSAW /Sb9KlCm2TvMp6eh/ivrNWFFw9mqDDtJySqqK3agcWIbJZ5MfqWa0AExk P35xkhe+kz/9TEJaBqLK+/iDMZ8k4WJTTdbJxv2jnUwzgjiclNVaNB6OY Dnqs1iOKn/djUN7mO5CMmQOSiVSEkCPVmXHEkkvsOlI9vrJvhjsUO8Srj w==; X-IronPort-AV: E=McAfee;i="6400,9594,10398"; a="262956285" X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="262956285" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 09:19:48 -0700 X-IronPort-AV: E=Sophos;i="5.92,243,1650956400"; d="scan'208";a="734878887" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2022 09:19:45 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1o8OnV-0015AU-35; Mon, 04 Jul 2022 19:19:41 +0300 Date: Mon, 4 Jul 2022 19:19:41 +0300 From: Andy Shevchenko To: =?iso-8859-1?Q?P=E9ter?= Ujfalusi Cc: Mark Brown , Pierre-Louis Bossart , sound-open-firmware@alsa-project.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Liam Girdwood , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Jaroslav Kysela , Takashi Iwai Subject: Re: [PATCH v1 1/1] ASoC: SOF: Intel: bdw: remove duplicating driver data retrieval Message-ID: References: <20220703143533.62173-1-andriy.shevchenko@linux.intel.com> <91f156ba-5d93-63d6-5fa0-86614bc370d3@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <91f156ba-5d93-63d6-5fa0-86614bc370d3@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,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 Mon, Jul 04, 2022 at 10:31:48AM +0300, P?ter Ujfalusi wrote: > On 03/07/2022 17:35, Andy Shevchenko wrote: ... > + return sof_acpi_probe(pdev, (const struct sof_dev_desc *)id->driver_data); > } > We don't use the desc in sof_broadwell_probe(), so we can just pass the id->driver_data I prefer not to cast inside the function parameters when it's not about POD. -- With Best Regards, Andy Shevchenko