summaryrefslogtreecommitdiff
path: root/app/src/usb.c
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-12-10 19:31:51 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-14 12:41:25 -0500
commit00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6 (patch)
treef5c8b1fa7bed4838393576376140e8420f2e415b /app/src/usb.c
parent1411092a7bb6e21e6e3a272737ad36d613e3b367 (diff)
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/usb.c')
-rw-r--r--app/src/usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/usb.c b/app/src/usb.c
index d0253b5..009d7af 100644
--- a/app/src/usb.c
+++ b/app/src/usb.c
@@ -21,7 +21,7 @@ static enum usb_dc_status_code usb_status = USB_DC_UNKNOWN;
#ifdef CONFIG_ZMK_USB
-static struct device *hid_dev;
+static const struct device *hid_dev;
static K_SEM_DEFINE(hid_sem, 1, 1);
@@ -83,7 +83,7 @@ void usb_status_cb(enum usb_dc_status_code status, const uint8_t *params) {
raise_usb_status_changed_event();
};
-static int zmk_usb_init(struct device *_arg) {
+static int zmk_usb_init(const struct device *_arg) {
int usb_enable_ret;
#ifdef CONFIG_ZMK_USB