From patchwork Mon Jul 31 21:42:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 708432 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 741B7C04FE0 for ; Mon, 31 Jul 2023 21:47:50 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AF0EADE5; Mon, 31 Jul 2023 23:46:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AF0EADE5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1690840068; bh=slYSQ1zk9zLf+x6fzq0FvAhOUxuCFVa63EqUyleJmk4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=dWAifaANbLp4e2p8VfFz/SaLtEUXK0GRYVAnCJ9uRsX4Z0qYh9lDKZW4R+0uRJ0gx OPQmbx9vL7obkCwg5E52iKRqRIpnTVD3hR9Sxmm2L6GIxZoFbnCNjZ3YC8bnTeLG+A dWH2rC4skW9ACkqL6wVrhTsUtjxUAqsnPJ208f2k= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 1378EF805FF; Mon, 31 Jul 2023 23:44:00 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 437DCF805FA; Mon, 31 Jul 2023 23:44:00 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 49A03F8016D; Mon, 31 Jul 2023 23:43:30 +0200 (CEST) Received: from mgamail.intel.com (unknown [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 4272DF80578 for ; Mon, 31 Jul 2023 23:43:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 4272DF80578 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=TaiLVjfO DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690839800; x=1722375800; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=slYSQ1zk9zLf+x6fzq0FvAhOUxuCFVa63EqUyleJmk4=; b=TaiLVjfOudac75bug3b6q0OxEj16CYat8T7zoUIBhRBTxV7y0sAmPgao ny07Ac5LDPz0ox6r3B52gUQpiwv0er4/0VsdHsA6543u1rMnYFWZoUhTk ncRPeyVJHEZcp62NQJs9EB2SKqpbN0Dl21fd7eL+Imyf8WIWiXYwRWg08 JbH6Saa0uPyJYxKDZn9Q5S12S4fnJSx2j2YXcvZCEx+gym1QZfGk3TAw5 Z9Q1klKoxfVpRWw4t8i0a3xh8ggLiy2Hhayducs9Ciuycy9ex/WCDyJiu 4pRBh1I4QqaPOEL4TBIs0duWht+Q61IBk6avVc3t1K+lyGNepe265odsD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="435449775" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="435449775" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:43:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10788"; a="763523548" X-IronPort-AV: E=Sophos;i="6.01,245,1684825200"; d="scan'208";a="763523548" Received: from youngnic-mobl1.amr.corp.intel.com (HELO pbossart-mobl3.intel.com) ([10.209.180.66]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jul 2023 14:43:15 -0700 From: Pierre-Louis Bossart To: alsa-devel@alsa-project.org Cc: tiwai@suse.de, broonie@kernel.org, Charles Keepax , Bard Liao , Ranjani Sridharan , Rander Wang , Pierre-Louis Bossart Subject: [PATCH 12/23] ASoC: intel: sof_sdw: Use a module device table Date: Mon, 31 Jul 2023 16:42:46 -0500 Message-Id: <20230731214257.444605-13-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230731214257.444605-1-pierre-louis.bossart@linux.intel.com> References: <20230731214257.444605-1-pierre-louis.bossart@linux.intel.com> MIME-Version: 1.0 Message-ID-Hash: JJDWTRJA5AGRIBBLPRH4NNPGLJP5YYSI X-Message-ID-Hash: JJDWTRJA5AGRIBBLPRH4NNPGLJP5YYSI X-MailFrom: pierre-louis.bossart@linux.intel.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: <> List-Archive: <> List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Charles Keepax A module device table is generally preferred over hard coding a MODULE_ALIAS. Reviewed-by: Bard Liao Reviewed-by: Ranjani Sridharan Reviewed-by: Rander Wang Signed-off-by: Charles Keepax Signed-off-by: Pierre-Louis Bossart --- sound/soc/intel/boards/sof_sdw.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 4f7ef83c21c5..6b55bcdccccc 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -2045,6 +2045,12 @@ static void mc_remove(struct platform_device *pdev) mc_dailink_exit_loop(card); } +static const struct platform_device_id mc_id_table[] = { + { "sof_sdw", }, + {} +}; +MODULE_DEVICE_TABLE(platform, mc_id_table); + static struct platform_driver sof_sdw_driver = { .driver = { .name = "sof_sdw", @@ -2052,6 +2058,7 @@ static struct platform_driver sof_sdw_driver = { }, .probe = mc_probe, .remove_new = mc_remove, + .id_table = mc_id_table, }; module_platform_driver(sof_sdw_driver); @@ -2061,6 +2068,5 @@ MODULE_AUTHOR("Bard Liao "); MODULE_AUTHOR("Rander Wang "); MODULE_AUTHOR("Pierre-Louis Bossart "); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("platform:sof_sdw"); MODULE_IMPORT_NS(SND_SOC_INTEL_HDA_DSP_COMMON); MODULE_IMPORT_NS(SND_SOC_INTEL_SOF_MAXIM_COMMON);