summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-10-23 06:54:03 -0400
committerTom Rini <trini@ti.com>2014-10-23 06:54:03 -0400
commitdee8abcd80d0981f7a1c2bb5d1f2e9313fddf189 (patch)
tree9af5ad1bc214ec2b4e2b7d48cc4a407cba5fb804 /drivers/misc
parent21109577635a871d038cfd53dd75e264d0e636bf (diff)
parent8104f546296a8e1fc1dd6129041e22f508b314f9 (diff)
downloadblackbird-obmc-uboot-dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189.tar.gz
blackbird-obmc-uboot-dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189.zip
Merge git://git.denx.de/u-boot-x86
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/cros_ec_lpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c
index 0e02671c93..07624a136f 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",
OpenPOWER on IntegriCloud