diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-09-18 11:18:56 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-10-06 16:29:07 -0400 |
commit | a6551a76fff15056fde2342d0f7de41ee605264e (patch) | |
tree | 94ff2a687fc6c8d7ef55a741b2d7db2634eb508d /drivers/input/keyboard | |
parent | 659e142be09482cfd8b9017f616afebc7cf48fa3 (diff) |
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>
Diffstat (limited to 'drivers/input/keyboard')
-rw-r--r-- | drivers/input/keyboard/cros_ec_keyb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/keyboard/cros_ec_keyb.c b/drivers/input/keyboard/cros_ec_keyb.c index 791781ade4e7..93111d1aa617 100644 --- a/drivers/input/keyboard/cros_ec_keyb.c +++ b/drivers/input/keyboard/cros_ec_keyb.c | |||
@@ -182,7 +182,7 @@ static int cros_ec_keyb_get_state(struct cros_ec_keyb *ckdev, uint8_t *kb_state) | |||
182 | .insize = ckdev->cols, | 182 | .insize = ckdev->cols, |
183 | }; | 183 | }; |
184 | 184 | ||
185 | return ckdev->ec->cmd_xfer(ckdev->ec, &msg); | 185 | return cros_ec_cmd_xfer(ckdev->ec, &msg); |
186 | } | 186 | } |
187 | 187 | ||
188 | static irqreturn_t cros_ec_keyb_irq(int irq, void *data) | 188 | static irqreturn_t cros_ec_keyb_irq(int irq, void *data) |