Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3932313imj; Tue, 19 Feb 2019 12:03:58 -0800 (PST) X-Google-Smtp-Source: AHgI3IZLQSOWNitAWHvRwVp5GY5Le6klZlFd8CxzWEFXpcLiuPNqpfY7e0toDlY9LiUMW6XucdYF X-Received: by 2002:a17:902:e409:: with SMTP id ci9mr9312155plb.221.1550606638753; Tue, 19 Feb 2019 12:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606638; cv=none; d=google.com; s=arc-20160816; b=IAJVX5cMOlOSlepWb1QRcX365KU8EK67bsRQudBX8N/ACKvnuulOZt8y9wqW9iktSS kE01UdQJwzmMrnqmr9zqcXIHq1GYz1hGA08UAIKQ3Cb6VaySg304G/JeSimF4a0PYvKA DubjGZlHXxWp7iexiXY9mDcoYy7Qn/uDyVYEqluof2RiJJfMRJIw03XEOWcCQycibc+k 5ipK5NYnKzG1MQXXlek0Fews4UfiGQvnAQI5YcEKhsqldrEOhi5wQwOVX+1ZOCWrn2HG kUzdPvLXtRmgVPtPaVqNhAHJHEehG1qYq1twz/aJbt//JTt9IzL3Idz6EqRt6emd6/qP 6zrg== 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=ziKxgtEfrHcUXKvzBu1wJG6W0O+Byd7IvKRXP92H3kw=; b=egpxT1ol0Idv8634KFCfscKTSlv74w88eCG1U1Lz6KC6DG04Pdt4g99hYPn2LeRQrm SQPPDFnuHtPHN6CO3u2mJ3CZeNTuzSvhhq31dH+FMpbjXtNf3baWhRQ2lk88nxngmlSf PBdc7DlW6kEpoM85+T/r4FbzGAS8mP62spFneyd2aaYhuJ3zVM02V4K+/YbBC2g/rcn+ wB+j8PnjHoAlpmwagODnaascokkF27w3TaN3/luFBvAHhDYlz7jDlEtNrEBfMPpEPJrV Wt2J8pniqBGzZoxowPD45to87gouUPSFNM/De9epCvQkaALW/P9cvWglKUTHEloQ76+1 Ky1g== 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 b11si18072394plb.427.2019.02.19.12.03.43; Tue, 19 Feb 2019 12:03:58 -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 S1729975AbfBSUCD (ORCPT + 99 others); Tue, 19 Feb 2019 15:02:03 -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 S1726215AbfBSUAm (ORCPT ); Tue, 19 Feb 2019 15:00:42 -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:09 +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:16 +0100 From: Mattias Jacobsson <2pi@mok.nu> To: , , CC: <2pi@mok.nu>, , Subject: [PATCH v4 4/8] platform/x86: dell-wmi-descriptor: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS() Date: Tue, 19 Feb 2019 20:59:52 +0100 Message-ID: <94088cad97f6db9f656c8a67fde35f2fcbbca7af.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-descriptor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/dell-wmi-descriptor.c b/drivers/platform/x86/dell-wmi-descriptor.c index 072821aa47fc..14ab250b7d5a 100644 --- a/drivers/platform/x86/dell-wmi-descriptor.c +++ b/drivers/platform/x86/dell-wmi-descriptor.c @@ -207,7 +207,7 @@ static struct wmi_driver dell_wmi_descriptor_driver = { module_wmi_driver(dell_wmi_descriptor_driver); -MODULE_ALIAS("wmi:" DELL_WMI_DESCRIPTOR_GUID); +MODULE_DEVICE_TABLE(wmi, dell_wmi_descriptor_id_table); MODULE_AUTHOR("Mario Limonciello "); MODULE_DESCRIPTION("Dell WMI descriptor driver"); MODULE_LICENSE("GPL"); -- 2.20.1