Skip to content

Commit 5271db2

Browse files
wfricharLee Jones
authored andcommitted
mfd: cros_ec: Sync to the latest cros_ec_commands.h from EC sources
This just updates include/linux/mfd/cros_ec_commands.h to match the latest EC version (which is the One True Source for such things). See <https://chromium.googlesource.com/chromiumos/platform/ec> [dianders: took today's ToT version from the Chromium OS EC; deleted references to cros_ec_dev and cros_ec_lpc since those aren't upstream yet] Signed-off-by: Bill Richardson <[email protected]> Signed-off-by: Doug Anderson <[email protected]> Reviewed-by: Simon Glass <[email protected]> Tested-by: Andrew Bresticker <[email protected]> Tested-by: Stephen Warren <[email protected]> Signed-off-by: Lee Jones <[email protected]>
1 parent 9c0b54a commit 5271db2

File tree

3 files changed

+1059
-75
lines changed

3 files changed

+1059
-75
lines changed

drivers/mfd/cros_ec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int cros_ec_prepare_tx(struct cros_ec_device *ec_dev,
3030
uint8_t *out;
3131
int csum, i;
3232

33-
BUG_ON(msg->out_len > EC_HOST_PARAM_SIZE);
33+
BUG_ON(msg->out_len > EC_PROTO2_MAX_PARAM_SIZE);
3434
out = ec_dev->dout;
3535
out[0] = EC_CMD_VERSION0 + msg->version;
3636
out[1] = msg->cmd;

include/linux/mfd/cros_ec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ enum {
2929
EC_MSG_RX_PROTO_BYTES = 3,
3030

3131
/* Max length of messages */
32-
EC_MSG_BYTES = EC_HOST_PARAM_SIZE + EC_MSG_TX_PROTO_BYTES,
33-
32+
EC_MSG_BYTES = EC_PROTO2_MAX_PARAM_SIZE +
33+
EC_MSG_TX_PROTO_BYTES,
3434
};
3535

3636
/**

0 commit comments

Comments
 (0)