From ac9c74aa7ca0b7ba8c8f3b416b22e87f3b074efa Mon Sep 17 00:00:00 2001 From: Bartosz Bilas Date: Thu, 17 Aug 2023 12:35:11 +0200 Subject: [PATCH] drivers: hwspinlock: constify config struct `DEVICE_DT_INST_DEFINE` requires to pass pointer to the device's private constant data so make it const. Signed-off-by: Bartosz Bilas --- drivers/hwspinlock/sqn_hwspinlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwspinlock/sqn_hwspinlock.c b/drivers/hwspinlock/sqn_hwspinlock.c index e9fa18dca8a..7178b217747 100644 --- a/drivers/hwspinlock/sqn_hwspinlock.c +++ b/drivers/hwspinlock/sqn_hwspinlock.c @@ -136,7 +136,7 @@ static int sqn_hwspinlock_init(const struct device *dev) #define SQN_HWSPINLOCK_INIT(idx) \ static struct sqn_hwspinlock_data sqn_hwspinlock##idx##_data; \ - static struct sqn_hwspinlock_config sqn_hwspinlock##idx##_config = { \ + static const struct sqn_hwspinlock_config sqn_hwspinlock##idx##_config = { \ DEVICE_MMIO_ROM_INIT(DT_DRV_INST(idx)), \ .num_locks = DT_INST_PROP(idx, num_locks), \ }; \