]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: cros_ec: stop calling ->cmd_xfer() directly
authorAndrew Bresticker <abrestic@chromium.org>
Thu, 18 Sep 2014 15:18:56 +0000 (17:18 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 6 Oct 2014 20:29:07 +0000 (21:29 +0100)
commita6551a76fff15056fde2342d0f7de41ee605264e
tree94ff2a687fc6c8d7ef55a741b2d7db2634eb508d
parent659e142be09482cfd8b9017f616afebc7cf48fa3
mfd: cros_ec: stop calling ->cmd_xfer() directly

Instead of having users of the ChromeOS EC call the interface-specific
cmd_xfer() callback directly, introduce a central cros_ec_cmd_xfer()
to use instead.  This will allow us to put all the locking and retry
logic in one place instead of duplicating it across the different
drivers.

Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/i2c/busses/i2c-cros-ec-tunnel.c
drivers/input/keyboard/cros_ec_keyb.c
drivers/mfd/cros_ec.c
include/linux/mfd/cros_ec.h