common/keyboard_vivaldi.c: Format with clang-format
BRANCH=none
TEST=none
@@ -69,8 +69,8 @@ static const uint16_t action_scancodes[] = {
static const struct ec_response_keybd_config *vivaldi_keybd;
-static enum
-ec_status get_vivaldi_keybd_config(struct host_cmd_handler_args *args)
+static enum ec_status
+get_vivaldi_keybd_config(struct host_cmd_handler_args *args)
{
struct ec_response_keybd_config *resp = args->response;
@@ -90,8 +90,8 @@ DECLARE_HOST_COMMAND(EC_CMD_GET_KEYBD_CONFIG, get_vivaldi_keybd_config,
* Boards selecting CONFIG_KEYBOARD_CUSTOMIZATION are likely to not
* want vivaldi code messing with their customized keyboards.
*/
-__overridable
-const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
+__overridable const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
return NULL;
}
@@ -117,8 +117,8 @@ static const struct ec_response_keybd_config default_keybd = {
.capabilities = KEYBD_CAP_SCRNLOCK_KEY,
};
-__overridable
-const struct ec_response_keybd_config *board_vivaldi_keybd_config(void)
+__overridable const struct ec_response_keybd_config *
+board_vivaldi_keybd_config(void)
{
return &default_keybd;
}
@@ -149,7 +149,6 @@ static void vivaldi_init(void)
}
for (i = 0; i < ARRAY_SIZE(vivaldi_keys); i++) {
-
uint8_t row, col, *mask;
enum action_key key;
@@ -157,8 +156,8 @@ static void vivaldi_init(void)
col = vivaldi_keys[i].col;
if (col >= KEYBOARD_COLS_MAX || row >= KEYBOARD_ROWS) {
- CPRINTS("VIVALDI: Bad (row,col) for T-%u: (%u,%u)",
- i, row, col);
+ CPRINTS("VIVALDI: Bad (row,col) for T-%u: (%u,%u)", i,
+ row, col);
ASSERT(false);
}
@@ -171,18 +170,16 @@ static void vivaldi_init(void)
key = vivaldi_keybd->action_keys[i];
if (i < vivaldi_keybd->num_top_row_keys && key != TK_ABSENT) {
-
/* Enable the mask */
*mask |= BIT(row);
/* Populate the scancode */
set_scancode_set2(row, col, action_scancodes[key]);
- CPRINTS("VIVALDI key-%u (r-%u, c-%u) = scancode-%X",
- i, row, col, action_scancodes[key]);
+ CPRINTS("VIVALDI key-%u (r-%u, c-%u) = scancode-%X", i,
+ row, col, action_scancodes[key]);
if (key == TK_VOL_UP)
set_vol_up_key(row, col);
-
}
}
}
