Skip to content

Commit

Permalink
iio: cros_ec_accel_legacy: Use cros_ec_sensors_core
Browse files Browse the repository at this point in the history
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 <gwendal@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
  • Loading branch information
Gwendal Grignou authored and Jonathan Cameron committed Jul 27, 2019
1 parent b9a0a64 commit d96e267
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 285 deletions.
4 changes: 1 addition & 3 deletions drivers/iio/accel/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,7 @@ config HID_SENSOR_ACCEL_3D

config IIO_CROS_EC_ACCEL_LEGACY
tristate "ChromeOS EC Legacy Accelerometer Sensor"
select IIO_BUFFER
select IIO_TRIGGERED_BUFFER
select CROS_EC_LPC_REGISTER_DEVICE
depends on IIO_CROS_EC_SENSORS_CORE
help
Say yes here to get support for accelerometers on Chromebook using
legacy EC firmware.
Expand Down
Loading

0 comments on commit d96e267

Please sign in to comment.