History

platform/chrome: use macros for passthru indexes

Move passthru indexes for EC and PD devices to common header. Also use them instead of literal constants.

Tzung-Bi Shih committed 4 years ago

Commit 3db0c9e1 parent b99eb595 files · +20 −15Browse files

Showing the changes to include/linux/platform_data (1 of 5 files). Show all

Unified · Split

include/linux/platform_data/cros_ec_proto.h+3−0
@@ -21,6 +21,9 @@ · 20 unmodified lines
2121 #define CROS_EC_DEV_SCP_NAME "cros_scp"
2222 #define CROS_EC_DEV_TP_NAME "cros_tp"
2323
24+#define CROS_EC_DEV_EC_INDEX 0
25+#define CROS_EC_DEV_PD_INDEX 1
26+
2427 /*
2528 * The EC is unresponsive for a time after a reboot command. Add a
2629 * simple delay to make sure that the bus stays locked.