HID: hid-sensor-custom: Allow more than one hinge angle sensor
authorYauhen Kharuzhy <jekhor@gmail.com>
Sat, 5 Nov 2022 22:34:22 +0000 (00:34 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Nov 2022 14:01:05 +0000 (15:01 +0100)
commit9861a25fc248508c781c18b198436c0a97cb3d99
tree361efeebf20705164822355eb3cb47834912c6d0
parent9c730fe10493d309f402cbd28ad539379b13a24d
HID: hid-sensor-custom: Allow more than one hinge angle sensor

Some devices has two sets of accelerometers and the sensor hub exports
two hinge angle 'sensors' based on accelerometer values. To allow more
than one sensor of the same type, use PLATFORM_DEVID_AUTO instead of
PLATFORM_DEVID_NONE when registering platform device for it.

Checked on the Lenovo Yoga Book YB1-X91L tablet.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
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