diff options
author | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-09 08:49:39 +0000 |
---|---|---|
committer | Tzung-Bi Shih <tzungbi@kernel.org> | 2022-06-10 02:31:42 +0000 |
commit | 3db0c9e5de7bd9dbe52580eb9752b2b3049e38da (patch) | |
tree | 38850477a4626d83e2f7dcb0c11e301949be6149 /include/linux/platform_data | |
parent | b99eb596efbd2aa138dad3dd5b6705b2e8c42c36 (diff) | |
download | linux-stable-3db0c9e5de7bd9dbe52580eb9752b2b3049e38da.tar.gz linux-stable-3db0c9e5de7bd9dbe52580eb9752b2b3049e38da.tar.bz2 linux-stable-3db0c9e5de7bd9dbe52580eb9752b2b3049e38da.zip |
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.
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/20220609084957.3684698-4-tzungbi@kernel.org
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/cros_ec_proto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/platform_data/cros_ec_proto.h b/include/linux/platform_data/cros_ec_proto.h index 85e29300f63d..c82a8285d936 100644 --- a/include/linux/platform_data/cros_ec_proto.h +++ b/include/linux/platform_data/cros_ec_proto.h @@ -21,6 +21,9 @@ #define CROS_EC_DEV_SCP_NAME "cros_scp" #define CROS_EC_DEV_TP_NAME "cros_tp" +#define CROS_EC_DEV_EC_INDEX 0 +#define CROS_EC_DEV_PD_INDEX 1 + /* * The EC is unresponsive for a time after a reboot command. Add a * simple delay to make sure that the bus stays locked. |