From patchwork Fri Oct 29 15:28:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Patchwork-Id: 12592999 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74289C4167E for ; Fri, 29 Oct 2021 15:29:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 63E5D60E76 for ; Fri, 29 Oct 2021 15:29:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230108AbhJ2Pbt (ORCPT ); Fri, 29 Oct 2021 11:31:49 -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_Wei=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_Wei=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 Precedence: bulk List-ID: X-Mailing-List: linux-input@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:*");