From: Rasmus Villemoes Date: Thu, 3 Oct 2024 21:27:57 +0000 (+0200) Subject: watchdog.h: change include of cyclic.h to u-boot/schedule.h X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=bd665754894ffe4ea01e43f4fc5d3ef4cba1689d;p=u-boot.git watchdog.h: change include of cyclic.h to u-boot/schedule.h Nobody relies on getting the cyclic API declared by including the watchdog.h header, but for historical reasons, many TUs include watchdog.h to get a declaration of schedule(). Now that we have a dedicated header for just that, include that header instead of cyclic.h. Eventually, all TUs that call schedule() should themselves include u-boot/schedule.h, but this is a step towards getting rid of unnecessary include statements in cyclic.h and global_data.h. Signed-off-by: Rasmus Villemoes Reviewed-by: Simon Glass Reviewed-by: Stefan Roese --- diff --git a/include/watchdog.h b/include/watchdog.h index d1956fafca..0149b44d07 100644 --- a/include/watchdog.h +++ b/include/watchdog.h @@ -10,7 +10,7 @@ #ifndef _WATCHDOG_H_ #define _WATCHDOG_H_ -#include +#include // to be removed later /* * Reset the watchdog timer, always returns 0