Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp214399pxb; Fri, 29 Oct 2021 08:32:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHbL0H8JI3Ap0ys5SjDbBJMPSBuyi7IA/lpXW0VD0/y/rCCKdeqDRH2sMGVBEAC6jHL9fk X-Received: by 2002:a05:6602:13c6:: with SMTP id o6mr8350488iov.28.1635521542455; Fri, 29 Oct 2021 08:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521542; cv=none; d=google.com; s=arc-20160816; b=W4gC2KZJ+mrKGNVB/fxPUtXIIPgslyo/NfTjDErJ2sJfJWtGln4bvJrAgm0YeTTMKR Ixtx2rnJhJr3eb04S8awwB2Ze8LozP+S0E5ix3rbcP/VWJXDYlPhGGIwuSeW8Yku99Ja p9p9dzHVgPnwCFQG9DeIGEC+UjNkhME9w0JJarE2YZD6MNulOsdR54P1aSgG2Eav6iTU W/i8ByLpOWR9DYqcfvVGRcxM4UZRq/qcQ0Xpx8DAoT1/KFVxY6jeJaaYxHh1tHYePfW0 EPjM0CXyWbcAS7Vi1cCFxuGyKXK2Rm3BAfEv2AbRfCWqqa4jiMTRFtSv9mvU7ZY3V+gz eC8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :from; bh=wqOqu0lZ3s3tEtCce3oXjXbH3CKN/duj4zgB5pxa+MI=; b=iKQIpLelcguNHxl9pzjho2P8EsyKHmcXrbSaptFQpwO1v2XlMmljqkCTpvyJ8N8d54 tISFavGzS6B60tqLg2VC1NaruL49227RwiQk8NC/sGAIcgt1o9RiY76fgkYnZ4fAzKzO wESkmEDqOm7wFnTQTJcMkmd2plIHL3wDfI4kgZTZsrEMwacn5H6QZhonb/kFxpPjfQjv 0y2YCedjDk4LxceTALDoYV75iNzKgVR+xO3Llr19OowZdl2Zic9V+Y+HFpwDpYOjIE4m N7iGgYFoZWbtdiawQQpX+LOw180XD2Jj/3qcK7k+Qt1rN2ekynFQmgXSxbXlxN0F0MXa jHIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=WSVP9NNH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i3si3104898ilv.98.2021.10.29.08.32.10; Fri, 29 Oct 2021 08:32:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=WSVP9NNH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbhJ2PcC (ORCPT + 99 others); Fri, 29 Oct 2021 11:32:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230126AbhJ2Pbu (ORCPT ); Fri, 29 Oct 2021 11:31:50 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D0B9C061766; Fri, 29 Oct 2021 08:29:20 -0700 (PDT) From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635521357; bh=FKf8tXgSnIqBNyFmoaiDFzhK1fONHzMDls7JdRNe8as=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WSVP9NNHNBNe8yH1yGfOzFjDYa4H8n6qfLAhKXwoh4TKYLwimEIzA7uAvAnmKEe47 roOnSmJ+MJ1JfKSqTU8Ob5DuvjelIPE5LfsfivZx/PVHdyQo/lUiLeXDXyzbrfOS5U +zcqdHZqiMpRIJ1KZ+lLYzmEiL7vNFmdJGZeksgs= To: linux-input@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Srinivas Pandruvada , Rushikesh S Kadam , Jiri Kosina , Benjamin Tissoires , Benson Leung , Enric Balletbo i Serra , Guenter Roeck Subject: [PATCH 5/6] platform/chrome: chros_ec_ishtp: only load for matching devices Date: Fri, 29 Oct 2021 17:29:00 +0200 Message-Id: <20211029152901.297939-6-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211029152901.297939-5-linux@weissschuh.net> References: <20211029152901.297939-1-linux@weissschuh.net> <20211029152901.297939-2-linux@weissschuh.net> <20211029152901.297939-3-linux@weissschuh.net> <20211029152901.297939-4-linux@weissschuh.net> <20211029152901.297939-5-linux@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Previously it was loaded for all ISHTP devices. Signed-off-by: Thomas Weißschuh --- Cc: Srinivas Pandruvada Cc: Rushikesh S Kadam Cc: Jiri Kosina Cc: Benjamin Tissoires Cc: linux-input@vger.kernel.org Cc: Benson Leung Cc: Enric Balletbo i Serra Cc: Guenter Roeck --- drivers/platform/chrome/cros_ec_ishtp.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/platform/chrome/cros_ec_ishtp.c b/drivers/platform/chrome/cros_ec_ishtp.c index 9d1e7e03628e..8c17358e84c1 100644 --- a/drivers/platform/chrome/cros_ec_ishtp.c +++ b/drivers/platform/chrome/cros_ec_ishtp.c @@ -774,6 +774,12 @@ static struct ishtp_cl_driver cros_ec_ishtp_driver = { }, }; +static const struct ishtp_device_id cros_ec_ishtp_id_table[] = { + { cros_ish_guid }, + { } +}; +MODULE_DEVICE_TABLE(ishtp, cros_ec_ishtp_id_table); + static int __init cros_ec_ishtp_mod_init(void) { return ishtp_cl_driver_register(&cros_ec_ishtp_driver, THIS_MODULE); @@ -791,4 +797,3 @@ MODULE_DESCRIPTION("ChromeOS EC ISHTP Client Driver"); MODULE_AUTHOR("Rushikesh S Kadam "); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("ishtp:*"); -- 2.33.1