summaryrefslogtreecommitdiff
path: root/app/boards/arm/nrfmicro/pinmux.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/boards/arm/nrfmicro/pinmux.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/boards/arm/nrfmicro/pinmux.c')
-rw-r--r--app/boards/arm/nrfmicro/pinmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/boards/arm/nrfmicro/pinmux.c b/app/boards/arm/nrfmicro/pinmux.c
index 30117d0..dc3bf6c 100644
--- a/app/boards/arm/nrfmicro/pinmux.c
+++ b/app/boards/arm/nrfmicro/pinmux.c
@@ -11,11 +11,11 @@
#include <sys/sys_io.h>
#include <devicetree.h>
-static int pinmux_nrfmicro_init(struct device *port) {
+static int pinmux_nrfmicro_init(const struct device *port) {
ARG_UNUSED(port);
#if CONFIG_BOARD_NRFMICRO_13
- struct device *p0 = device_get_binding("GPIO_0");
+ const struct device *p0 = device_get_binding("GPIO_0");
#if CONFIG_BOARD_NRFMICRO_CHARGER
gpio_pin_configure(p0, 5, GPIO_OUTPUT);
gpio_pin_set(p0, 5, 0);