linux/drivers/iio/common
Gwendal Grignou 7cbb6681d7 iio: common: cros_ec_sensors: Add label attribute
When sensor location is known, populate iio sysfs "label" attribute:

* "accel-base" : the sensor is in the base of the convertible (2-1)
  device.
* "accel-display" : the sensor is in the lid/display plane of the
  device.
* "accel-camera" : the sensor is in the swivel camera subassembly.

The non-standard |location| attribute is removed, the field |loc| in
cros_ec_sensors_core_state is removed.

It apply to standalone accelerometer as well as IMU (accelerometer +
gyroscope) and sensors where the location is known (light).

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20220427190804.961697-3-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-11 14:35:26 +01:00
..
cros_ec_sensors iio: common: cros_ec_sensors: Add label attribute 2022-06-11 14:35:26 +01:00
hid-sensors iio: triggered-buffer: extend support to configure output buffers 2021-10-19 08:30:45 +01:00
ms_sensors iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
scmi_sensors iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
ssp_sensors iio: ssp_sensors: replace usage of found with dedicated list iterator variable 2022-04-04 09:11:25 +01:00
st_sensors iio: st_sensors: Use iio_device_claim/release_direct_mode() when relevant 2022-04-10 16:21:45 +01:00
Kconfig iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00
Makefile iio/scmi: Adding support for IIO SCMI Based Sensors 2021-03-13 16:43:04 +00:00