common/keyboard_backlight.c: Format with clang-format
BRANCH=none
TEST=none
@@ -22,9 +22,13 @@ static struct kblight_conf kblight;
static int current_percent;
static uint8_t current_enable;
-__overridable void board_kblight_init(void) {}
+__overridable void board_kblight_init(void)
+{
+}
-__overridable void board_kblight_shutdown(void) {}
+__overridable void board_kblight_shutdown(void)
+{
+}
static int kblight_init(void)
{
@@ -89,7 +93,6 @@ int kblight_get_enabled(void)
return -1;
}
-
int kblight_register(const struct kblight_drv *drv)
{
kblight.drv = drv;
@@ -162,12 +165,11 @@ static int cc_kblight(int argc, char **argv)
if (kblight_enable(i > 0))
return EC_ERROR_PARAM1;
}
- ccprintf("Keyboard backlight: %d%% enabled: %d\n",
- kblight_get(), kblight_get_enabled());
+ ccprintf("Keyboard backlight: %d%% enabled: %d\n", kblight_get(),
+ kblight_get_enabled());
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(kblight, cc_kblight,
- "percent",
+DECLARE_CONSOLE_COMMAND(kblight, cc_kblight, "percent",
"Get/set keyboard backlight");
static enum ec_status
@@ -182,8 +184,7 @@ hc_get_keyboard_backlight(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_PWM_GET_KEYBOARD_BACKLIGHT,
- hc_get_keyboard_backlight,
- EC_VER_MASK(0));
+ hc_get_keyboard_backlight, EC_VER_MASK(0));
static enum ec_status
hc_set_keyboard_backlight(struct host_cmd_handler_args *args)
@@ -197,5 +198,4 @@ hc_set_keyboard_backlight(struct host_cmd_handler_args *args)
return EC_RES_SUCCESS;
}
DECLARE_HOST_COMMAND(EC_CMD_PWM_SET_KEYBOARD_BACKLIGHT,
- hc_set_keyboard_backlight,
- EC_VER_MASK(0));
+ hc_set_keyboard_backlight, EC_VER_MASK(0));
