aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/src/behaviors/behavior_toggle_layer.c
diff options
context:
space:
mode:
authorinnovaker <[email protected]>2020-12-10 19:31:51 +0000
committerPete Johanson <[email protected]>2020-12-14 12:41:25 -0500
commit00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6 (patch)
treef5c8b1fa7bed4838393576376140e8420f2e415b /app/src/behaviors/behavior_toggle_layer.c
parent1411092a7bb6e21e6e3a272737ad36d613e3b367 (diff)
downloadzmk-00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6.tar.gz
zmk-00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6.zip
refactor(app): replace `struct device *` with `const struct device *`
Replaced with RegExp: /(?<!const )(struct device \*)/g See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html PR: #467
Diffstat (limited to 'app/src/behaviors/behavior_toggle_layer.c')
-rw-r--r--app/src/behaviors/behavior_toggle_layer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/behaviors/behavior_toggle_layer.c b/app/src/behaviors/behavior_toggle_layer.c
index b3c696142e..32833775e1 100644
--- a/app/src/behaviors/behavior_toggle_layer.c
+++ b/app/src/behaviors/behavior_toggle_layer.c
@@ -18,7 +18,7 @@ LOG_MODULE_DECLARE(zmk, CONFIG_ZMK_LOG_LEVEL);
struct behavior_tog_config {};
struct behavior_tog_data {};
-static int behavior_tog_init(struct device *dev) { return 0; };
+static int behavior_tog_init(const struct device *dev) { return 0; };
static int tog_keymap_binding_pressed(struct zmk_behavior_binding *binding,
struct zmk_behavior_binding_event event) {