Skip to content

Commit 68da658

Browse files
committed
config: Format code with latest .clang-config
1 parent 7e46666 commit 68da658

File tree

5 files changed

+175
-164
lines changed

5 files changed

+175
-164
lines changed

config/app/hid_mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ int hid_mouse_wheel_report(int direction, bool pressed)
5858
{
5959
uint8_t val = pressed ? (uint8_t)(direction & 0xFF) : 0x00;
6060

61-
uint8_t report[] = { 0x00, 0x00, 0x00, val };
61+
uint8_t report[] = {0x00, 0x00, 0x00, val};
6262
hid_mouse_send_report(report, sizeof(report));
6363

6464
return 0;

config/app/usb_comm/usb_comm_proto.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ static void usb_comm_handle_message()
9191
d2h.action = h2d.action;
9292
d2h.which_payload = usb_comm_MessageD2H_nop_tag;
9393

94-
STRUCT_SECTION_FOREACH(usb_comm_handler_config, config)
95-
{
94+
STRUCT_SECTION_FOREACH(usb_comm_handler_config, config) {
9695
if (config->action == h2d.action) {
9796
if (config->handler(&h2d, &d2h, bytes_field, bytes_field_len)) {
9897
d2h.which_payload = config->response_payload;

config/boards/helloword/hw75_dynamic/app/knob_app.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
2222

2323
#include "knob_app.h"
2424

25-
#define KNOB_NODE DT_ALIAS(knob)
25+
#define KNOB_NODE DT_ALIAS(knob)
2626
#define MOTOR_NODE DT_PHANDLE(KNOB_NODE, motor)
2727

2828
#define KNOB_APP_THREAD_STACK_SIZE 1024
29-
#define KNOB_APP_THREAD_PRIORITY 10
29+
#define KNOB_APP_THREAD_PRIORITY 10
3030

31-
#define KEYMAP_NODE DT_INST(0, zmk_keymap)
31+
#define KEYMAP_NODE DT_INST(0, zmk_keymap)
3232
#define KEYMAP_LAYER_CHILD_LEN(node) 1 +
33-
#define KEYMAP_LAYERS_NUM (DT_FOREACH_CHILD(KEYMAP_NODE, KEYMAP_LAYER_CHILD_LEN) 0)
33+
#define KEYMAP_LAYERS_NUM (DT_FOREACH_CHILD(KEYMAP_NODE, KEYMAP_LAYER_CHILD_LEN) 0)
3434

3535
#define LAYER_LABEL(node) \
3636
COND_CODE_0(DT_NODE_HAS_PROP(node, label), (NULL), (DT_PROP(node, label))),
@@ -46,10 +46,10 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
4646
.torque_limit = (float)DT_PROP(LAYER_PROFILE(node), torque_limit_mv) / 1000.0f, \
4747
},
4848

49-
static const char *layer_names[KEYMAP_LAYERS_NUM] = { DT_FOREACH_CHILD(KEYMAP_NODE, LAYER_LABEL) };
49+
static const char *layer_names[KEYMAP_LAYERS_NUM] = {DT_FOREACH_CHILD(KEYMAP_NODE, LAYER_LABEL)};
5050

51-
static const struct knob_pref layer_prefs[KEYMAP_LAYERS_NUM] = { DT_FOREACH_CHILD(KEYMAP_NODE,
52-
LAYER_PREF) };
51+
static const struct knob_pref layer_prefs[KEYMAP_LAYERS_NUM] = {
52+
DT_FOREACH_CHILD(KEYMAP_NODE, LAYER_PREF)};
5353

5454
static const struct device *knob = DEVICE_DT_GET(KNOB_NODE);
5555
static const struct device *motor = DEVICE_DT_GET(MOTOR_NODE);
@@ -178,7 +178,8 @@ static int knob_app_settings_load_cb(const char *name, size_t len, settings_read
178178
memcpy(&knob_prefs[j], &loader[i],
179179
sizeof(struct knob_pref));
180180

181-
LOG_DBG("Loaded knob pref %d for layer %d \"%s\": mode=%d, ppr=%d, torque_limit=%.03f",
181+
LOG_DBG("Loaded knob pref %d for layer %d \"%s\": mode=%d, "
182+
"ppr=%d, torque_limit=%.03f",
182183
i, j, knob_prefs[j].name, knob_prefs[j].mode,
183184
knob_prefs[j].ppr, knob_prefs[j].torque_limit);
184185

config/boards/helloword/hw75_dynamic/app/uart_comm/uart_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static struct {
2828
uart_comm_Action action;
2929
uart_comm_handler_t handler;
3030
} handlers[] = {
31-
{ uart_comm_Action_FN_STATE_CHANGED, handle_fn_state },
31+
{uart_comm_Action_FN_STATE_CHANGED, handle_fn_state},
3232
};
3333

3434
static void uart_comm_handle(uint32_t len)

0 commit comments

Comments
 (0)