Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3931063imj; Tue, 19 Feb 2019 12:03:04 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib8oVAsH8E0/rpq8ryV7yqo8CJaxNznrrO6Tv755KaKzV5zhQiHDnGjvN4lBq6jsDJi6PTW X-Received: by 2002:a62:20c9:: with SMTP id m70mr30013457pfj.118.1550606584223; Tue, 19 Feb 2019 12:03:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550606584; cv=none; d=google.com; s=arc-20160816; b=JW9CUNmJEJzqDMMWZZodE4lWwNWcI1XC/VOsDmAG0Kdx4gdR8yQrSMd5NKbmek+7LE x7ji74nhIzLHRB9FksgdRllm71L055U1/WTgXXV6DfQxdvRkmCoob8qlRb9Y0/+TIINh Ei4Hh9Xg9xrdkG7E6u4nh5EiUaVmqxyvc3MMcdaHiht4oCLsmm0CvG7ORAiU2JkhbPqP GXS7GCPUd0pKMEPW7PQJWbthbzwzikYO62Hhv0Vup2fkXJZ38UPRzOeNyqB5P9idLaVG nXTtQzp2jh9J+V4rdXg5laAIhcTalGU3P+PqAlFpRedPYMe9YFfUB8+aMkvR2GYAgKh5 Lf4Q== 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=igFfHoAaSxGSiN+StWKAjy5fK678jUhx7SqPuzG8wLM=; b=bUYKcO5SC5Cb6AyFhYx01WVi6+MncBCD4tBa6OOtkm1/3qcubV3q25Pq/mygQyaDUk sfcs0VJCCBhTbrKa2nSdgNeUqi73p3YzhBn0jTJrhhFDt6hvIcsbOl91OMKfegW7lQzG k9RUfp1g6hmNUVt1RMvjk3EXao/lJTJa8OBDQE/Rd5yBZ/iVMECA07yMaXoP9IktFGkP OGA7ORD+L3MclWZbn9HqoInyTslVJJv/tPESaF0Lvzd/GFISm1hV98NXLOYlWY6isnLQ sjUQcVM5rXXVpjDYHsuCDkq1kJngcUsPZYTwTlp2mdDT7/aJKoRZkl3f73iUWnYy1PvL T/rQ== 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 n18si15984307pgm.28.2019.02.19.12.02.48; Tue, 19 Feb 2019 12:03:04 -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 S1729955AbfBSUBy (ORCPT + 99 others); Tue, 19 Feb 2019 15:01:54 -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 S1729637AbfBSUAq (ORCPT ); Tue, 19 Feb 2019 15:00:46 -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:16 +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:23 +0100 From: Mattias Jacobsson <2pi@mok.nu> To: , , CC: <2pi@mok.nu>, , Subject: [PATCH v4 7/8] platform/x86: intel-wmi-thunderbolt: use MODULE_DEVICE_TABLE() instead of MODULE_ALIAS() Date: Tue, 19 Feb 2019 20:59:55 +0100 Message-ID: <1974b47402bfb029532c00a9a2cc805e1cf0bd84.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> --- drivers/platform/x86/intel-wmi-thunderbolt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel-wmi-thunderbolt.c b/drivers/platform/x86/intel-wmi-thunderbolt.c index 9ded8e2af312..4dfa61434a76 100644 --- a/drivers/platform/x86/intel-wmi-thunderbolt.c +++ b/drivers/platform/x86/intel-wmi-thunderbolt.c @@ -88,7 +88,7 @@ static struct wmi_driver intel_wmi_thunderbolt_driver = { module_wmi_driver(intel_wmi_thunderbolt_driver); -MODULE_ALIAS("wmi:" INTEL_WMI_THUNDERBOLT_GUID); +MODULE_DEVICE_TABLE(wmi, intel_wmi_thunderbolt_id_table); MODULE_AUTHOR("Mario Limonciello "); MODULE_DESCRIPTION("Intel WMI Thunderbolt force power driver"); MODULE_LICENSE("GPL v2"); -- 2.20.1