diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mfd/cros_ec.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h index 14cf522123dd..7eee38abd02a 100644 --- a/include/linux/mfd/cros_ec.h +++ b/include/linux/mfd/cros_ec.h | |||
| @@ -42,8 +42,7 @@ enum { | |||
| 42 | * @outsize: Outgoing length in bytes | 42 | * @outsize: Outgoing length in bytes |
| 43 | * @insize: Max number of bytes to accept from EC | 43 | * @insize: Max number of bytes to accept from EC |
| 44 | * @result: EC's response to the command (separate from communication failure) | 44 | * @result: EC's response to the command (separate from communication failure) |
| 45 | * @outdata: Outgoing data to EC | 45 | * @data: Where to put the incoming data from EC and outgoing data to EC |
| 46 | * @indata: Where to put the incoming data from EC | ||
| 47 | */ | 46 | */ |
| 48 | struct cros_ec_command { | 47 | struct cros_ec_command { |
| 49 | uint32_t version; | 48 | uint32_t version; |
| @@ -51,8 +50,7 @@ struct cros_ec_command { | |||
| 51 | uint32_t outsize; | 50 | uint32_t outsize; |
| 52 | uint32_t insize; | 51 | uint32_t insize; |
| 53 | uint32_t result; | 52 | uint32_t result; |
| 54 | uint8_t outdata[EC_PROTO2_MAX_PARAM_SIZE]; | 53 | uint8_t data[0]; |
| 55 | uint8_t indata[EC_PROTO2_MAX_PARAM_SIZE]; | ||
| 56 | }; | 54 | }; |
| 57 | 55 | ||
| 58 | /** | 56 | /** |
