Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp213039pxb; Fri, 29 Oct 2021 08:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw+8qO+5pB/mMPTTMJmCjPG7hfd/reIw+EIMBRTsINYUkNhu0PM15J7lwVg3kJqzyc0FsW X-Received: by 2002:a05:6638:338e:: with SMTP id h14mr2619652jav.13.1635521467234; Fri, 29 Oct 2021 08:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521467; cv=none; d=google.com; s=arc-20160816; b=yXLOlfwqT8ZHFQirWhy5un0ARpgpzcv+JbIVLbHASVur9SCOhy7vp1NGdH37qCIM2D aLhsUkKnbP5QMEp0UMSPEv3esUfUWB6OZu9YcOGPjCvIDQwqiB4972T5MwN7uUugjNsq Fi1bkZ/dCAe1s3AVxGf1ywqqUEomk68TPcimXnz98Ac3kuY2ma60zBg+XJ695wIIIKjO Jec95PQRImYYzO/SF+JYekBObeu3J/Y10b73SDW/2NX2Gc1uYsnqtUYXxDU1ERuZbPEL /czLeY3+Tymo7v2cyFqAA5Dsd7ochL8L0x/so05tCKw7bYiOXRoBRcR/no0pHQ8kf/at ePFg== 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=5SHxZQ5VE6a5YAERZjNUnnwELr0enRxcYTZBs/cAsS0=; b=DpFeiH/ydmwabhJPuVrDwtfrmg1aXyZsSlNtyHyNOS/1Hg6Oj1BQl3VzRqbZfRkfoU qpJjCHtFA/vwPZ+9AhRd+8s/ahArQ8Y+qTEedLqeLHQodcs9u0lbPyQzOcPyqHDHoDhT +opn20PlQqhK0L3PTidFg5+7vcIsKfEbzvx7GFdo4Sn0Gz02OZZH9GzAzPhKgqJeeKt4 O69o8Gf0MA/xb9UwwtqXTb/6DImJh1l5GjbnI6e90guKq4RIM+GSieQYfOzJ+xd1Xc97 8cCHc2jLQ+L+eyOJWx6kEfafv1unYtB8Q6Dtrp4DSYK0nXP8SBP1f3f75nb5MZ0ahPb9 XPwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=p6yb5Qn1; 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 h22si1524575jav.5.2021.10.29.08.30.55; Fri, 29 Oct 2021 08:31:07 -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=p6yb5Qn1; 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 S230310AbhJ2Pb7 (ORCPT + 99 others); Fri, 29 Oct 2021 11:31:59 -0400 Received: from todd.t-8ch.de ([159.69.126.157]:49145 "EHLO todd.t-8ch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230078AbhJ2Pbu (ORCPT ); Fri, 29 Oct 2021 11:31:50 -0400 From: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1635521356; bh=Ce5DxgP/kBEplR9HOobeUaGFgTryud+39iLlnv3yVjk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p6yb5Qn1+y6Uhgwh9Hhn1G9OCMjxFp9herrBAvpgp6+56qp+GHNrVRhh3a5ryzf8Q 2NPLOzeM0ilzyzfX3h0+uiO9kwKs4+QWXU/IA9OOR61n3jVAH2n5odeNFs0ykTdx4B 9e2jQkDjZwW/xzfJsKDL+z9p6AgGtV92v66UjIXs= To: linux-input@vger.kernel.org Cc: =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Srinivas Pandruvada , Jiri Kosina , Benjamin Tissoires Subject: [PATCH 4/6] HID: intel-ish-hid: hid-client: only load for matching devices Date: Fri, 29 Oct 2021 17:28:59 +0200 Message-Id: <20211029152901.297939-5-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211029152901.297939-4-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> 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: Jiri Kosina Cc: Benjamin Tissoires Cc: linux-input@vger.kernel.org --- drivers/hid/intel-ish-hid/ishtp-hid-client.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/hid/intel-ish-hid/ishtp-hid-client.c b/drivers/hid/intel-ish-hid/ishtp-hid-client.c index 91bf4d01e91a..fb47d38d1e87 100644 --- a/drivers/hid/intel-ish-hid/ishtp-hid-client.c +++ b/drivers/hid/intel-ish-hid/ishtp-hid-client.c @@ -952,6 +952,12 @@ static struct ishtp_cl_driver hid_ishtp_cl_driver = { .driver.pm = &hid_ishtp_pm_ops, }; +static const struct ishtp_device_id hid_ishtp_id_table[] = { + { hid_ishtp_guid }, + { } +}; +MODULE_DEVICE_TABLE(ishtp, hid_ishtp_id_table); + static int __init ish_hid_init(void) { int rv; @@ -981,4 +987,3 @@ MODULE_AUTHOR("Daniel Drubin "); MODULE_AUTHOR("Srinivas Pandruvada "); MODULE_LICENSE("GPL"); -MODULE_ALIAS("ishtp:*"); -- 2.33.1