device: Fixing new left over device instance made constant

Recent addition that went under the radar.

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2020-09-15 10:05:33 +02:00 committed by Maureen Helm
commit ed98883795
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@
* *
* @return 0 * @return 0
*/ */
static inline int z_arm_dwt_init(struct device *arg) static inline int z_arm_dwt_init(const struct device *arg)
{ {
/* Enable tracing */ /* Enable tracing */
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk; CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;

View file

@ -12,7 +12,7 @@
#include <logging/log.h> #include <logging/log.h>
LOG_MODULE_REGISTER(ipm_console, CONFIG_IPM_LOG_LEVEL); LOG_MODULE_REGISTER(ipm_console, CONFIG_IPM_LOG_LEVEL);
struct device *ipm_dev; const struct device *ipm_dev;
static int console_out(int c) static int console_out(int c)
{ {
@ -64,7 +64,7 @@ static void ipm_console_hook_install(void)
__printk_hook_install(console_out); __printk_hook_install(console_out);
} }
static int ipm_console_init(struct device *dev) static int ipm_console_init(const struct device *dev)
{ {
ARG_UNUSED(dev); ARG_UNUSED(dev);