platform/chrome: use macros for passthru indexes
authorTzung-Bi Shih <tzungbi@kernel.org>
Thu, 9 Jun 2022 08:49:39 +0000 (08:49 +0000)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 10 Jun 2022 02:31:42 +0000 (02:31 +0000)
commit3db0c9e5de7bd9dbe52580eb9752b2b3049e38da
tree38850477a4626d83e2f7dcb0c11e301949be6149
parentb99eb596efbd2aa138dad3dd5b6705b2e8c42c36
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
drivers/platform/chrome/cros_ec.c
drivers/platform/chrome/cros_ec_proto.c
drivers/platform/chrome/cros_ec_proto_test.c
drivers/platform/chrome/cros_ec_trace.h
include/linux/platform_data/cros_ec_proto.h