]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice
authorGwendal Grignou <gwendal@chromium.org>
Tue, 11 Jun 2019 07:12:36 +0000 (00:12 -0700)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commit769fa2f5b4975f69e324aa1267c94b12c69aec66
tree3d984dda8e7413aad9876979ce36f366c439a80b
parent235ae45214938cd4f73a93e2c846c2d4a644a923
mfd: cros_ec_dev: Register cros_ec_accel_legacy driver as a subdevice

With this patch, the cros_ec_ctl driver will register the legacy
accelerometer driver (named cros_ec_accel_legacy) if it fails to
register sensors through the usual path cros_ec_sensors_register().
This legacy device is present on Chromebook devices with older EC
firmware only supporting deprecated EC commands:
- Glimmer based devices [Intel SOC using LPC transport]
- Veyron minnie devices [ARM SOC using SPI transport]

Tested-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c