UPSTREAM: 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>
(cherry picked from commit 1578461a18596cf33093b392d1b7853ba4276154)
Signed-off-by: Shane McKee <shane.mckee@intel.com>

BUG=b:127370436
TEST=$ `dmesg | grep ishtp` shows an ishtp driver being loaded
TEST=$ `watch -n 0.1 cat /sys/devices/pci0000:00/0000:00:13.0/
{7B7154D0-56F4-4BDC-B0D8-9E7CDAE0D6A0}/cros-ec-dev.0.auto/
cros-ec-accel.0/iio:device0/in_accel_*_raw` should return 3
accelerometer values. Move the device around and ensure that movement
results in sane values.

Change-Id: I20fc1ad553271f0c015570032c31d16e60c4ef48
Signed-off-by: Nathan Ciobanu <nathan.d.ciobanu@intel.com>
Signed-off-by: Hyungwoo Yang <hyungwoo.yang@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/1529253
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
1 file changed