IIO: hid-sensor-prox: Use generic usage
authorPhilipp Jungkamp <p.jungkamp@gmx.net>
Thu, 24 Nov 2022 23:38:41 +0000 (00:38 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Dec 2022 14:24:57 +0000 (15:24 +0100)
commitc8aca355bdd56e5dad55897cc419ea5d3e4c0e58
treea67b9eb64f649d135bbecbf7063a72c1d42f778b
parent3a04a1862d9b130fce24553e93db681dc311a29e
IIO: hid-sensor-prox: Use generic usage

Use a generic 'hsdev->usage' instead of the HID_USAGE_SENSOR_PROX to
allow this driver to drive the Lenvo custom proximity sensor, which is
registered under a 'custom' usage and not HID_USAGE_SENSOR_PROX.

Add the Lenovo Intelligent Sensing Solution (LISS) human presence sensor
to the platform device ids.

Signed-off-by: Philipp Jungkamp <p.jungkamp@gmx.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/iio/light/hid-sensor-prox.c