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 | 21 | #define CROS_EC_DEV_SCP_NAME "cros_scp" |
| 22 | 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 | 28 | * The EC is unresponsive for a time after a reboot command. Add a |
| 26 | 29 | * simple delay to make sure that the bus stays locked. |