baseboard/kukui/base_detect_kukui.c: Format with clang-format
BRANCH=none
TEST=none
@@ -82,17 +82,17 @@ static void enable_charge(int enable)
{
#ifdef VARIANT_KUKUI_POGO_DOCK
if (enable) {
- struct charge_port_info info = {
- .voltage = 5000, .current = 1500};
+ struct charge_port_info info = { .voltage = 5000,
+ .current = 1500 };
/*
* Set supplier type to PD to have same priority as type c
* port.
*/
- charge_manager_update_charge(
- CHARGE_SUPPLIER_DEDICATED, CHARGE_PORT_POGO, &info);
+ charge_manager_update_charge(CHARGE_SUPPLIER_DEDICATED,
+ CHARGE_PORT_POGO, &info);
} else {
- charge_manager_update_charge(
- CHARGE_SUPPLIER_DEDICATED, CHARGE_PORT_POGO, NULL);
+ charge_manager_update_charge(CHARGE_SUPPLIER_DEDICATED,
+ CHARGE_PORT_POGO, NULL);
}
pd_send_host_event(PD_EVENT_POWER_CHANGE);
#endif
@@ -210,11 +210,11 @@ void base_force_state(enum ec_set_base_state_cmd state)
gpio_disable_interrupt(GPIO_POGO_ADC_INT_L);
pogo_type = (state == 1 ? DEVICE_TYPE_KEYBOARD : DEVICE_TYPE_DETACHED);
- base_set_device_type(state == EC_SET_BASE_STATE_ATTACH
- ? DEVICE_TYPE_KEYBOARD
- : DEVICE_TYPE_DETACHED);
- CPRINTS("BD forced %sconnected", state == EC_SET_BASE_STATE_ATTACH ?
- "" : "dis");
+ base_set_device_type(state == EC_SET_BASE_STATE_ATTACH ?
+ DEVICE_TYPE_KEYBOARD :
+ DEVICE_TYPE_DETACHED);
+ CPRINTS("BD forced %sconnected",
+ state == EC_SET_BASE_STATE_ATTACH ? "" : "dis");
}
#ifdef VARIANT_KUKUI_POGO_DOCK
