iio: hid-sensors: Add hinge sensor driver
authorYe Xiang <xiang.ye@intel.com>
Tue, 15 Dec 2020 05:44:43 +0000 (13:44 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 22 Jan 2021 08:52:02 +0000 (08:52 +0000)
commit660987e1250334dd944aab0421144b541675d5d1
tree49808f78e56f3830233e037b4a4f151bee7abfc4
parent239319670e2a7c405eeb4b3e7721cf8bf8eef840
iio: hid-sensors: Add hinge sensor driver

The Hinge sensor is a common custom sensor on laptops. It calculates
the angle between the lid (screen) and the base (keyboard). In addition,
it also exposes screen and the keyboard angles with respect to the
ground. Applications can easily get laptop's status in space through
this sensor, in order to display appropriate user interface.

Signed-off-by: Ye Xiang <xiang.ye@intel.com>
Link: https://lore.kernel.org/r/20201215054444.9324-3-xiang.ye@intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/common/hid-sensors/hid-sensor-attributes.c
drivers/iio/position/Kconfig
drivers/iio/position/Makefile
drivers/iio/position/hid-sensor-custom-intel-hinge.c [new file with mode: 0644]