Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp212907pxb; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjFmmHokJ7dpsUR/muzMOhS9Cf6cCTdirtN36BYZXKAKrfoMgHEKWMwXkvfKv5enzHLx2/ X-Received: by 2002:a05:6638:4195:: with SMTP id az21mr8797603jab.11.1635521457746; Fri, 29 Oct 2021 08:30:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635521457; cv=none; d=google.com; s=arc-20160816; b=DPP0rqxttkuR6RnfMnHdOFmmWezvzNmT0BwabClifkGTTfV3ztTqH1IgWmo2DZqy68 G8b47RPytOFN+N1YaFk/VK+SW6QsfHdLRjIoAMETvO1pStOPd96Kz0f1AgaWCtrNZ52i naM/qlk+24JNIZH5B7t+9M33tKDIi21QTQkGj5bn+r2N6iH3kuvMu0SZoZsLjEd3KRso lfs36y7FehzYaFxOEkCMa2la6fgna4OL0HWUAYC+MSWnCfJaNxYpFLVZ/T9jJmpZya9/ ciyLHotcKWpZKnaFlevzjIcDo3h5amOIKdjlbp4yf2b3v0IFsBowmRnkNY1wmXZwVpgD r59g== 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=chkANHSCs3H5XiFZI+wVlJJx+saw+Ll6i8h9bM9F6S0=; b=ulGnQ5ljwyrPIT8jsa0tQPD9pIorUkS6SKP02qDD9LQnxAzePXazHLYzJDknoe/YAn 2sXuN4NKk5E4H+IU3S7C4TKipNOAinWQL3p7Hv+O3gP5HmSaNf/f5Rkn6+7JLFGc3gOM t9AI2AuM2HmA5+FHWhyo2z7sliUIENNQqsI360kYg1epTz25SqXUQd1QlHWzYMzY9UZq O/6L0ePboOXb/spY9mg5rslKLWQZbeDIH+WW862ALorsnFXLUlfNGjZdwtaj4HM1ouQb /HohDMtBqxrJQdRrHC3trWKj0XZdnN4Yy6CgyPuoFZ15L2Bt8snDLUMTakilqYBWoiqa qaeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=pTw43ohd; 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 o5si797910ilg.127.2021.10.29.08.30.45; Fri, 29 Oct 2021 08:30:57 -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=pTw43ohd; 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 S230243AbhJ2Pb4 (ORCPT + 99 others); Fri, 29 Oct 2021 11:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbhJ2Pbr (ORCPT ); Fri, 29 Oct 2021 11:31:47 -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 4FA1FC061767; Fri, 29 Oct 2021 08:29:19 -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=1635521356; bh=1Vm+F5pQrRkCe+lCoWHHxZapkTVugC5Vo5k00o6uSQs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pTw43ohd3ZM+6WiTbXobzwlT84ZzVSewRGv1oJdM/4IkkFjii+2FaFVAU4bFVrGTJ qwcFiz+LyHrH9SJTIJJ08DlUToeVAXHnr/itYKYnAMscNWqpNoY+HR198JlaEuoMle LCPnra29Fh7vMXfqm9Ne0kQFA6WohYMU7eb0QRa4= 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 Subject: [PATCH 3/6] HID: intel-ish-hid: fw-loader: only load for matching devices Date: Fri, 29 Oct 2021 17:28:58 +0200 Message-Id: <20211029152901.297939-4-linux@weissschuh.net> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211029152901.297939-3-linux@weissschuh.net> References: <20211029152901.297939-1-linux@weissschuh.net> <20211029152901.297939-2-linux@weissschuh.net> <20211029152901.297939-3-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 --- drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/hid/intel-ish-hid/ishtp-fw-loader.c b/drivers/hid/intel-ish-hid/ishtp-fw-loader.c index 1b486f262747..945a9d0b68cd 100644 --- a/drivers/hid/intel-ish-hid/ishtp-fw-loader.c +++ b/drivers/hid/intel-ish-hid/ishtp-fw-loader.c @@ -1063,6 +1063,12 @@ static struct ishtp_cl_driver loader_ishtp_cl_driver = { .reset = loader_ishtp_cl_reset, }; +static const struct ishtp_device_id loader_ishtp_id_table[] = { + { loader_ishtp_guid }, + { } +}; +MODULE_DEVICE_TABLE(ishtp, loader_ishtp_id_table); + static int __init ish_loader_init(void) { return ishtp_cl_driver_register(&loader_ishtp_cl_driver, THIS_MODULE); @@ -1083,4 +1089,3 @@ MODULE_DESCRIPTION("ISH ISH-TP Host firmware Loader Client Driver"); MODULE_AUTHOR("Rushikesh S Kadam "); MODULE_LICENSE("GPL v2"); -MODULE_ALIAS("ishtp:*"); -- 2.33.1