CHROMIUM: Refactor chromeos_ec_i2c to use a common file
authorSimon Glass <sjg@chromium.org>
Sun, 16 Sep 2012 00:18:59 +0000 (17:18 -0700)
committerGerrit <chrome-bot@google.com>
Wed, 26 Sep 2012 22:34:55 +0000 (15:34 -0700)
commit17d3942572b6a8ddda853daec8e30e2a99fe51fd
tree084e3d1c4092bcd778cb68c7399db00885070a4f
parent30845ffb447df58e71ff1eb0070caae683469e47
CHROMIUM: Refactor chromeos_ec_i2c to use a common file

Much of the code in the I2C implementation should actually be common
to all interfaces. As a first step, create a chromeos_ec.c which
implements this common functionality, and make the I2C implementation
use it.

(Note: The FDT change is in this commit also to avoid a breakage)

BUG=chrome-os-partner:13860
TEST=manual
See that snow keyboard still works correctly over I2C.

Change-Id: Ib48009d3c38ee8b80b3dd40eadbb7f56f5b5ea59
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/33571
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
arch/arm/boot/dts/cros5250-common.dtsi
drivers/i2c/busses/i2c-chromeos_ec.c
drivers/input/keyboard/mkbp.c
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/chromeos_ec.c [new file with mode: 0644]
drivers/mfd/chromeos_ec_i2c.c
include/linux/mfd/chromeos_ec.h