From 29d8cc67c35c0e8d17400202fb548707bf448218 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 1 Sep 2017 09:55:18 -0700 Subject: Clean up CONFIG_CASE_CLOSED_DEBUG usage CCD_CHANGE_HOOK should use CONFIG_CASE_CLOSED_DEBUG_V1. All boards which use chip/g either use both CONFIG_USB_SERIALNO and CONFIG_CASE_CLOSED_DEBUG or neither of them, so just depend on CONFIG_USB_SERIALNO. This is in preparation for making common/case_closed_debug refer only to the usb_pd_protocol version (with mode=disabled/partial/enabled), and cr50 will have its own version (with only enabled/disabled, and tied more closely to CCD config). No functionality changes. BUG=none BRANCH=cr50 TEST=make buildall -j; boot cr50 and see change hook called Change-Id: I1985c8c48c1a85fed4549402a7b47b8a9cf135d7 Signed-off-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/648067 Reviewed-by: Mary Ruthven --- include/link_defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/link_defs.h') diff --git a/include/link_defs.h b/include/link_defs.h index 262a149772..9e621ebce7 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -54,7 +54,7 @@ extern const struct hook_data __hooks_pwrbtn_change[]; extern const struct hook_data __hooks_pwrbtn_change_end[]; extern const struct hook_data __hooks_battery_soc_change[]; extern const struct hook_data __hooks_battery_soc_change_end[]; -#ifdef CONFIG_CASE_CLOSED_DEBUG +#ifdef CONFIG_CASE_CLOSED_DEBUG_V1 extern const struct hook_data __hooks_ccd_change[]; extern const struct hook_data __hooks_ccd_change_end[]; #endif -- cgit v1.2.1