Skip to content

Commit d96e267

Browse files
gwendalcrjic23
authored andcommitted
iio: cros_ec_accel_legacy: Use cros_ec_sensors_core
Remove duplicate code in cros-ec-accel-legacy, use cros-ec-sensors-core functions and structures when possible. On glimmer, check the 2 accelerometers are presented and working. Signed-off-by: Gwendal Grignou <[email protected]> Reviewed-by: Enric Balletbo i Serra <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent b9a0a64 commit d96e267

File tree

2 files changed

+55
-285
lines changed

2 files changed

+55
-285
lines changed

drivers/iio/accel/Kconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,7 @@ config HID_SENSOR_ACCEL_3D
202202

203203
config IIO_CROS_EC_ACCEL_LEGACY
204204
tristate "ChromeOS EC Legacy Accelerometer Sensor"
205-
select IIO_BUFFER
206-
select IIO_TRIGGERED_BUFFER
207-
select CROS_EC_LPC_REGISTER_DEVICE
205+
depends on IIO_CROS_EC_SENSORS_CORE
208206
help
209207
Say yes here to get support for accelerometers on Chromebook using
210208
legacy EC firmware.

0 commit comments

Comments
 (0)