diff options
author | Tzung-Bi Shih <[email protected]> | 2022-06-09 08:49:37 +0000 |
---|---|---|
committer | Tzung-Bi Shih <[email protected]> | 2022-06-10 02:31:42 +0000 |
commit | ea7f0f777d28db6e500a05836f2a9d467c7012de (patch) | |
tree | ed1df4a21cb30bd0d6b5712f7fff9d15c0268437 | |
parent | 40f58143745eaabc68ef44b068642ca3b38d23a6 (diff) |
platform/chrome: cros_ec_commands: fix compile errors
Fix compile errors when including cros_ec_commands.h solely.
1.
cros_ec_commands.h:587:9: error: unknown type name 'uint8_t'
587 | uint8_t flags;
| ^~~~~~~
2.
cros_ec_commands.h:1105:43: error: implicit declaration of function 'BIT'
1105 | EC_COMMS_STATUS_PROCESSING = BIT(0),
| ^~~
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | include/linux/platform_data/cros_ec_commands.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/platform_data/cros_ec_commands.h b/include/linux/platform_data/cros_ec_commands.h index e59f51c41a1c..f13568b3e247 100644 --- a/include/linux/platform_data/cros_ec_commands.h +++ b/include/linux/platform_data/cros_ec_commands.h @@ -13,8 +13,8 @@ #ifndef __CROS_EC_COMMANDS_H #define __CROS_EC_COMMANDS_H - - +#include <linux/bits.h> +#include <linux/types.h> #define BUILD_ASSERT(_cond) |