From 6ec50005db068e4f1d62ca1fda0c36a81a9c99b4 Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Thu, 6 Apr 2023 10:24:39 +0200 Subject: [PATCH] drivers: i3c: cdns: remove local DIV_ROUND_UP The definition is already provided by zephyr/sys/util.h. Signed-off-by: Gerard Marull-Paretas --- drivers/i3c/i3c_cdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/i3c_cdns.c b/drivers/i3c/i3c_cdns.c index 990ee252cb9..6ca92581595 100644 --- a/drivers/i3c/i3c_cdns.c +++ b/drivers/i3c/i3c_cdns.c @@ -12,6 +12,7 @@ #include #include #include +#include #define DEV_ID 0x0 #define DEV_ID_I3C_MASTER 0x5034 @@ -365,7 +366,6 @@ /******************************************************************************* * Local Constants Definition ******************************************************************************/ -#define DIV_ROUND_UP(n, d) (((n) + (d)-1) / (d)) /* TODO: this needs to be configurable in the dts...somehow */ #define I3C_CONTROLLER_ADDR 0x08