summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_ec.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2022-06-09 08:49:39 +0000
committerTzung-Bi Shih <tzungbi@kernel.org>2022-06-10 02:31:42 +0000
commit3db0c9e5de7bd9dbe52580eb9752b2b3049e38da (patch)
tree38850477a4626d83e2f7dcb0c11e301949be6149 /drivers/platform/chrome/cros_ec.c
parentb99eb596efbd2aa138dad3dd5b6705b2e8c42c36 (diff)
downloadlwn-3db0c9e5de7bd9dbe52580eb9752b2b3049e38da.tar.gz
lwn-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 'drivers/platform/chrome/cros_ec.c')
-rw-r--r--drivers/platform/chrome/cros_ec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c
index b3e94cdf7d1a..e51a3f2176c7 100644
--- a/drivers/platform/chrome/cros_ec.c
+++ b/drivers/platform/chrome/cros_ec.c
@@ -19,9 +19,6 @@
#include "cros_ec.h"
-#define CROS_EC_DEV_EC_INDEX 0
-#define CROS_EC_DEV_PD_INDEX 1
-
static struct cros_ec_platform ec_p = {
.ec_name = CROS_EC_DEV_NAME,
.cmd_offset = EC_CMD_PASSTHRU_OFFSET(CROS_EC_DEV_EC_INDEX),