HID: intel-ish-hid: Use VID/PID from ISH
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 30 Jan 2019 21:32:17 +0000 (13:32 -0800)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 1 Feb 2019 08:26:41 +0000 (09:26 +0100)
commit1578461a18596cf33093b392d1b7853ba4276154
tree24c31bd0e8cfcec6d315dd4cdfcd08b956629885
parent141065012a8c89a48e5c584ef94f6a11b9523c9d
HID: intel-ish-hid: Use VID/PID from ISH

The Intel ISH HID can now have other devices attached to it, not just
sensors. Hence ISH HID transport is no longer just used for sensors.
Currently the vendor and product id is hardcoded for sensors, but they
can be obtained from ISH firmware for the real device. The driver already
extract them and store as part of device_info structure in client_data.
So use vendor id/product id obtained from the ISH firmware.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/intel-ish-hid/ishtp-hid.c