diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-10 07:30:15 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-22 21:50:32 -0600 |
commit | f1269925f9f2797d5a98afb50990540754db8d1e (patch) | |
tree | ae38d5e8ee4c91c758939bb299896f67cd1b9c81 /drivers/misc | |
parent | ca42d3f7eeacd62ecd4c04ac2598a973b54d7c2d (diff) | |
download | u-boot-imx-f1269925f9f2797d5a98afb50990540754db8d1e.zip u-boot-imx-f1269925f9f2797d5a98afb50990540754db8d1e.tar.gz u-boot-imx-f1269925f9f2797d5a98afb50990540754db8d1e.tar.bz2 |
x86: cros_ec: Update LPC driver for new cros_ec header
There was a minor rename of one of the defines, so update the driver.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/cros_ec_lpc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c index 0e02671..07624a1 100644 --- a/drivers/misc/cros_ec_lpc.c +++ b/drivers/misc/cros_ec_lpc.c @@ -54,7 +54,7 @@ int cros_ec_lpc_command(struct cros_ec_dev *dev, uint8_t cmd, int cmd_version, int csum; int i; - if (dout_len > EC_HOST_PARAM_SIZE) { + if (dout_len > EC_PROTO2_MAX_PARAM_SIZE) { debug("%s: Cannot send %d bytes\n", __func__, dout_len); return -1; } @@ -159,7 +159,7 @@ int cros_ec_lpc_init(struct cros_ec_dev *dev, const void *blob) byte = 0xff; byte &= inb(EC_LPC_ADDR_HOST_CMD); byte &= inb(EC_LPC_ADDR_HOST_DATA); - for (i = 0; i < EC_HOST_PARAM_SIZE && (byte == 0xff); i++) + for (i = 0; i < EC_PROTO2_MAX_PARAM_SIZE && (byte == 0xff); i++) byte &= inb(EC_LPC_ADDR_HOST_PARAM + i); if (byte == 0xff) { debug("%s: CROS_EC device not found on LPC bus\n", |