HID: hid-sensor-custom: Allow more custom iio sensors
authorPhilipp Jungkamp <p.jungkamp@gmx.net>
Thu, 24 Nov 2022 23:38:38 +0000 (00:38 +0100)
committerJiri Kosina <jkosina@suse.cz>
Tue, 20 Dec 2022 14:24:57 +0000 (15:24 +0100)
commit98c062e8245199fa9121141a0bf1035dc45ae90e
tree2968118f807cfa62a402595033436917184e120e
parent2043f9a37d163ef4f572992bec7cdcdf54d965de
HID: hid-sensor-custom: Allow more custom iio sensors

The known LUID table for established/known custom HID sensors was
limited to sensors with "INTEL" as manufacturer. But some vendors such
as Lenovo also include fairly standard iio sensors (e.g. ambient light)
in their custom sensors.

Expand the known custom sensors table by a tag used for the platform
device name and match sensors based on the LUID as well as optionally
on model and manufacturer properties.

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/hid/hid-sensor-custom.c
include/linux/hid-sensor-ids.h