From 05bd0cdec7a3132fda3127c3c9daeed0ebae0dae Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Fri, 6 Dec 2013 15:17:33 -0800 Subject: Rename mixed-case config constants This renames constants used in compiler conditionals to uppercase. BOARD_foo CHIP_foo CHIP_FAMILY_foo CHIP_VARIANT_foo CORE_foo Mixed-case constants are still defined by the makefile, but are now no longer used. I will make one more pass in a week or so to catch any that are part of someone else's CL, since otherwise this change might silently merge correctly but result in incorrect compilation. Then I will remove defining the mixed-case constants. BUG=chromium:322144 BRANCH=none TEST=Build all boards. Also, "git grep 'BOARD_[a-z]'" should return no results (similarly for CHIP, CORE, etc.) Change-Id: I6418412e9f7ec604a35c2d426d12475dd83e7076 Signed-off-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/179206 Reviewed-by: Vic Yang Reviewed-by: Bill Richardson --- common/usb_port_power_smart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/usb_port_power_smart.c') diff --git a/common/usb_port_power_smart.c b/common/usb_port_power_smart.c index 6a60e8a04f..be4cf138a2 100644 --- a/common/usb_port_power_smart.c +++ b/common/usb_port_power_smart.c @@ -32,7 +32,7 @@ static uint8_t charge_mode[USB_CHARGE_PORT_COUNT]; static void usb_charge_set_control_mode(int port_id, int mode) { -#ifdef BOARD_rambi +#ifdef BOARD_RAMBI /* * Rambi has only a single shared control signal, so the last mode set * to either port wins. Also, only CTL1 can be set; the other pins @@ -62,7 +62,7 @@ static void usb_charge_set_enabled(int port_id, int en) static void usb_charge_set_ilim(int port_id, int sel) { -#ifdef BOARD_rambi +#ifdef BOARD_RAMBI /* Rambi has a shared ILIM_SEL signal too */ gpio_set_level(GPIO_USB_ILIM_SEL, sel); #else -- cgit v1.2.1