summaryrefslogtreecommitdiff
path: root/common/usb_pd_host_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/usb_pd_host_cmd.c')
-rw-r--r--common/usb_pd_host_cmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/common/usb_pd_host_cmd.c b/common/usb_pd_host_cmd.c
index 128b467502..8bb96228c0 100644
--- a/common/usb_pd_host_cmd.c
+++ b/common/usb_pd_host_cmd.c
@@ -510,7 +510,7 @@ DECLARE_HOST_COMMAND(EC_CMD_GET_PD_PORT_CAPS,
hc_get_pd_port_caps,
EC_VER_MASK(0));
-#ifdef CONFIG_CMD_PD_CONTROL
+#ifdef CONFIG_HOSTCMD_PD_CONTROL
static enum ec_status pd_control(struct host_cmd_handler_args *args)
{
static int pd_control_disabled[CONFIG_USB_PD_PORT_MAX_COUNT];
@@ -585,8 +585,7 @@ static enum ec_status pd_control(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
-
DECLARE_HOST_COMMAND(EC_CMD_PD_CONTROL, pd_control, EC_VER_MASK(0));
-#endif /* CONFIG_CMD_PD_CONTROL */
+#endif /* CONFIG_HOSTCMD_PD_CONTROL */
#endif /* HAS_TASK_HOSTCMD */