iio: cros_ec_accel_legacy: Use cros_ec_sensors_core
authorGwendal Grignou <gwendal@chromium.org>
Mon, 15 Jul 2019 23:14:53 +0000 (16:14 -0700)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 27 Jul 2019 22:06:59 +0000 (23:06 +0100)
commitd96e267762fc723079b8089172077e94a4cf8dd2
tree3000eb6f3baaf874a2df6a717a8346058f6b22b8
parentb9a0a64e3b35934128551a25513d91bd634736ed
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 <gwendal@chromium.org>
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig
drivers/iio/accel/cros_ec_accel_legacy.c