From 50720eb0cbb7832f01619602885e598846d3b533 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Wed, 19 Jan 2022 10:53:54 +0100 Subject: [PATCH] drivers: misc: ft8xx: constify device config access `const` was missing from one device config access. Signed-off-by: Gerard Marull-Paretas --- drivers/misc/ft8xx/ft8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/ft8xx/ft8xx.c b/drivers/misc/ft8xx/ft8xx.c index 7a3fc0754d..914a56eb5c 100644 --- a/drivers/misc/ft8xx/ft8xx.c +++ b/drivers/misc/ft8xx/ft8xx.c @@ -96,7 +96,7 @@ static bool verify_chip(void) static int ft8xx_init(const struct device *dev) { int ret; - struct ft8xx_config *config = (struct ft8xx_config *)dev->config; + const struct ft8xx_config *config = (const struct ft8xx_config *)dev->config; ret = ft8xx_drv_init(); if (ret < 0) {