platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants
authorShawn Nematbakhsh <shawnn@chromium.org>
Tue, 16 May 2017 15:46:48 +0000 (17:46 +0200)
committerBenson Leung <bleung@chromium.org>
Fri, 23 Jun 2017 23:09:06 +0000 (16:09 -0700)
commitbce70fef7279243d62adbf5f53998b8d3d016144
treeb98469efa01a86c3b688e8e1f84eda6e1a2ad6f1
parent6e4941067cef482c9ed254cf06cab70c32db05b2
platform/chrome: cros_ec_lpc: Add R/W helpers to LPC protocol variants

Call common functions for read / write to prepare support for future
LPC protocol variants which use different I/O ops than inb / outb.

Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_lpc.c
drivers/platform/chrome/cros_ec_lpc_reg.c [new file with mode: 0644]
include/linux/mfd/cros_ec_lpc_reg.h [new file with mode: 0644]