lkml.org 
[lkml]   [2021]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/6] HID: intel-ish-hid: hid-client: only load for matching devices
    Date
    Previously it was loaded for all ISHTP devices.

    Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>

    ---

    Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
    Cc: Jiri Kosina <jikos@kernel.org>
    Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
    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 <daniel.drubin@intel.com>");
    MODULE_AUTHOR("Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>");

    MODULE_LICENSE("GPL");
    -MODULE_ALIAS("ishtp:*");
    --
    2.33.1
    \
     
     \ /
      Last update: 2021-10-29 17:30    [W:5.317 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site