mfd: cros_ec: differentiate SCP from EC by feature bit
authorPi-Hsun Shih <pihsun@chromium.org>
Mon, 3 Jun 2019 03:45:11 +0000 (11:45 +0800)
committerLee Jones <lee.jones@linaro.org>
Tue, 2 Jul 2019 11:11:31 +0000 (12:11 +0100)
commit554e937ec8d75930bc711612208af27961e3dc61
tree56ef6915ca6227498ee222cb82eb901c9dcd443f
parentc77cd342f9fd64a9f6ed3eb270fd527826ef92d3
mfd: cros_ec: differentiate SCP from EC by feature bit

System Companion Processor (SCP) is Cortex M4 co-processor on some
MediaTek platform that can run EC-style firmware. Since a SCP and EC
would both exist on a system, and use the cros_ec_dev driver, we need to
differentiate between them for the userspace, or they would both be
registered at /dev/cros_ec, causing a conflict.

Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Acked-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