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
21#define CROS_EC_DEV_SCP_NAME "cros_scp"21#define CROS_EC_DEV_SCP_NAME "cros_scp"
22#define CROS_EC_DEV_TP_NAME "cros_tp"22#define CROS_EC_DEV_TP_NAME "cros_tp"
23 23
24#define CROS_EC_DEV_EC_INDEX 0
25#define CROS_EC_DEV_PD_INDEX 1
26
24/*27/*
25 * The EC is unresponsive for a time after a reboot command. Add a28 * The EC is unresponsive for a time after a reboot command. Add a
26 * simple delay to make sure that the bus stays locked.29 * simple delay to make sure that the bus stays locked.