Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3931383imj; Tue, 19 Feb 2019 12:03:18 -0800 (PST) X-Google-Smtp-Source: AHgI3IZOHcgA89QcR0HUYOdqo00t9Li/27zzkMFpl5yiC5Q4yk1LzE4KyeSYKoJ6pU1Dr0Wi87vM X-Received: by 2002:a62:9917:: with SMTP id d23mr32049022pfe.88.1550606598432; Tue, 19 Feb 2019 12:03:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606598; cv=none; d=google.com; s=arc-20160816; b=HZpsFN06BHy+f7eLVzjyYxueQEn/+dFAT5b3NI94StxJ54zVOIO6N2x6q2B49MpSm/ pF0HbORVoP6kvoTF1SlK+PpkpcdAMOXXnAIf3swPcRPZHgHNtECEZd3jZndb39VbLnBg NLCe7CfhZPuLOb1b/eZ3aqr8pK0Rj/Vhflfm7JwmCnywdd9r+jQpO80UKCLOkFRamWhc 2ZC1yhoXKmpejPMTVqgWAHjNrPTai76EJRZ61VFCpGr/+Nj0wVbJjgACbD+9sssUtBUm 32hCr0zLl6pVSgoCf4mJfWS05R1aj14IPGyJM4QIGSJwIwSPvahTfBnYopOIdA8DWkAP Xi1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8io6DITNteikcHPkVkzbt0t3vv+XJgmePjKWU3cwy5Q=; b=yaJ/wAPvSssMH+fD7X0N4hWQRjacWV3JVONMkIBFQSnZfkQJ9sQTI4onVmF8iVC02q 9crpBvoCBId74r6RvC6ZbZH6oI9su3cxOFB+qwnv1aWXU5i8ZF0+uB8aemdCgCNyFxhq H38tFaBe5N+tyKtJtDaZRsMLJRR6YomSPtaVCBeR8wlaFN1B6ei9sn1GOozAHvtcycQJ MoKNYeguKRZHYBqc8Wx/vuDiLRwHig6RFrB9FTcVxKq9kp/terCkYk7hp0q7Wdi/C8nC KEcJu0M35tgksL7cUPhspetQy8R0BR2CTGHsdabG/w3TT2qr29gGW+XkGSG+fYRxTZs6 pTIQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mok.nu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p18si17317961plo.223.2019.02.19.12.03.03; Tue, 19 Feb 2019 12:03:18 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mok.nu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729645AbfBSUAq (ORCPT + 99 others); Tue, 19 Feb 2019 15:00:46 -0500 Received: from route-level1.fsdata.se ([89.221.252.216]:49358 "EHLO route-level1.fsdata.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729619AbfBSUAn (ORCPT ); Tue, 19 Feb 2019 15:00:43 -0500 Received: from DAG01.HMC.local (192.168.46.11) by EDGE01LEVEL1.hmc.local (192.168.46.33) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 19 Feb 2019 21:00:12 +0100 Received: from localhost (94.234.42.81) by DAG01.HMC.local (192.168.46.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 19 Feb 2019 21:00:18 +0100 From: Mattias Jacobsson <2pi@mok.nu> To: , , , , CC: <2pi@mok.nu>, , Subject: [PATCH v4 5/8] platform/x86: dell-wmi: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS() Date: Tue, 19 Feb 2019 20:59:53 +0100 Message-ID: <6a0b0a721a1fc8d7db3395c03601eb475234bae0.1550603967.git.2pi@mok.nu> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [94.234.42.81] X-ClientProxiedBy: PROXY05.HMC.local (192.168.46.55) To DAG01.HMC.local (192.168.46.11) Received-SPF: Neutral (EDGE01LEVEL1.hmc.local: 192.168.46.11 is neither permitted nor denied by domain of 2pi@mok.nu) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WMI drivers can if they have specified an array of struct wmi_device_id use the MODULE_DEVICE_TABLE() macro to automatically generate the appropriate MODULE_ALIAS() output. Thus avoiding to keep both the array of struct wmi_device_id and the MODULE_ALIAS() declaration(s) in sync. Change driver to use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS(). Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Reviewed-by: Mario Limonciello --- drivers/platform/x86/dell-wmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/dell-wmi.c b/drivers/platform/x86/dell-wmi.c index 16c7f3d9a335..0602aba62b3f 100644 --- a/drivers/platform/x86/dell-wmi.c +++ b/drivers/platform/x86/dell-wmi.c @@ -50,8 +50,6 @@ MODULE_LICENSE("GPL"); static bool wmi_requires_smbios_request; -MODULE_ALIAS("wmi:"DELL_EVENT_GUID); - struct dell_wmi_priv { struct input_dev *input_dev; u32 interface_version; @@ -738,3 +736,5 @@ static void __exit dell_wmi_exit(void) wmi_driver_unregister(&dell_wmi_driver); } module_exit(dell_wmi_exit); + +MODULE_DEVICE_TABLE(wmi, dell_wmi_id_table); -- 2.20.1