Move passthru indexes for EC and PD devices to common header. Also use them instead of literal constants.
Showing the changes to include/linux/platform_data (1 of 5 files). Show all
Unified · Split
| @@ -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 a | 28 | * 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. |