Revert "iio: hid-sensor-als: Add light chromaticity support"
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sun, 17 Dec 2023 20:07:02 +0000 (12:07 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2023 07:08:20 +0000 (08:08 +0100)
commitb9670ee2e975e1cb6751019d5dc5c193aecd8ba2
tree9cd12e4defd764ca099a78f894bbc109106bd7e3
parent1e37bf84afacd5ba17b7a13a18ca2bc78aff05c0
Revert "iio: hid-sensor-als: Add light chromaticity support"

This reverts commit ee3710f39f9d0ae5137a866138d005fe1ad18132.

This commit assumes that every HID descriptor for ALS sensor has
presence of usage id ID HID_USAGE_SENSOR_LIGHT_CHROMATICITY_X and
HID_USAGE_SENSOR_LIGHT_CHROMATICITY_Y. When the above usage ids are
absent,  driver probe fails. This breaks ALS sensor functionality on
many platforms.

Till we have a good solution, revert this commit.

Reported-by: Thomas Weißschuh <thomas@t-8ch.de>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218223
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: <stable@vger.kernel.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20231217200703.719876-2-srinivas.pandruvada@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/hid-sensor-als.c
include/linux/hid-sensor-ids.h