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 <email@example.com>
Signed-off-by: Benjamin Tissoires <firstname.lastname@example.org>
(cherry picked from commit 1578461a18596cf33093b392d1b7853ba4276154)
Signed-off-by: Shane McKee <email@example.com>
TEST=$ `dmesg | grep ishtp` shows an ishtp driver being loaded
TEST=$ `watch -n 0.1 cat /sys/devices/pci0000:00/0000:00:13.0/
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.
Signed-off-by: Nathan Ciobanu <firstname.lastname@example.org>
Signed-off-by: Hyungwoo Yang <email@example.com>
Commit-Ready: ChromeOS CL Exonerator Bot <firstname.lastname@example.org>
Reviewed-by: Sean Paul <email@example.com>
Reviewed-by: Jett Rink <firstname.lastname@example.org>
1 file changed