Skip to content

Commit 874d9e9

Browse files
Tomasz Bursztykacarlescufi
authored andcommitted
rtt: Device instance are all constant now
Switching device parameter to constant. Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent f5226b0 commit 874d9e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rtt/SEGGER_RTT_zephyr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
K_MUTEX_DEFINE(rtt_term_mutex);
2323

24-
static int rtt_init(struct device *unused)
24+
static int rtt_init(const struct device *unused)
2525
{
2626
ARG_UNUSED(unused);
2727

@@ -30,4 +30,4 @@ static int rtt_init(struct device *unused)
3030
return 0;
3131
}
3232

33-
SYS_INIT(rtt_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS);
33+
SYS_INIT(rtt_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS);

0 commit comments

Comments
 (0)