OSDN Git Service

mfd: cros_ec: Instantiate properly CrOS Touchpad MCU device
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 8 May 2019 09:19:56 +0000 (11:19 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 14 May 2019 07:13:28 +0000 (08:13 +0100)
commit4f8f2bb7ab032150ba94cf60ea5aaf3e3ac3d2ca
treedc3d0c8feb4e6ec1ff482b00b97d7a31f949c312
parent90486af5e0f7334091b94264a84713611933e97e
mfd: cros_ec: Instantiate properly CrOS Touchpad MCU device

Support Touchpad MCU as a special of CrOS EC devices. The current
Touchpad MCU is used on Eve Chromebook and used the same protocol as
other CrOS EC devices.

When a MCU has touchpad support (aka EC_FEATURE_TOUCHPAD), it is
instantiated as a special CrOS EC device with device name 'cros_tp'. So
regardless of the probing order between the actual cros_ec and cros_tp,
the userspace and other kernel drivers should not confuse them.

Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec_dev.c
include/linux/mfd/cros_ec.h