rtc: Remove <common.h> and add needed includes
authorTom Rini <trini@konsulko.com>
Thu, 2 May 2024 01:31:15 +0000 (19:31 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 7 May 2024 14:00:56 +0000 (08:00 -0600)
Remove <common.h> from this driver directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
30 files changed:
drivers/rtc/abx80x.c
drivers/rtc/davinci.c
drivers/rtc/ds1307.c
drivers/rtc/ds1337.c
drivers/rtc/ds1374.c
drivers/rtc/ds3231.c
drivers/rtc/ds3232.c
drivers/rtc/emul_rtc.c
drivers/rtc/ht1380.c
drivers/rtc/i2c_rtc_emul.c
drivers/rtc/isl1208.c
drivers/rtc/m41t62.c
drivers/rtc/mc13xxx-rtc.c
drivers/rtc/mc146818.c
drivers/rtc/mcfrtc.c
drivers/rtc/mvrtc.c
drivers/rtc/mxsrtc.c
drivers/rtc/pcf2127.c
drivers/rtc/pcf8563.c
drivers/rtc/pl031.c
drivers/rtc/pt7c4338.c
drivers/rtc/rtc-uclass.c
drivers/rtc/rv3029.c
drivers/rtc/rv8803.c
drivers/rtc/rx8010sj.c
drivers/rtc/rx8025.c
drivers/rtc/s35392a.c
drivers/rtc/sandbox_rtc.c
drivers/rtc/stm32_rtc.c
drivers/rtc/zynqmp_rtc.c

index 823aff0..1235b84 100644 (file)
@@ -12,7 +12,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
index c7ce41b..a20b73e 100644 (file)
@@ -4,7 +4,6 @@
  * Heiko Schocher <hs@denx.de>
  * Copyright (C) 2021 Dario Binacchi <dariobin@libero.it>
  */
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <clk.h>
index 0e9d3d2..ba06ff9 100644 (file)
@@ -13,7 +13,7 @@
  * based on ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index 2c780ab..7eccf1c 100644 (file)
@@ -11,7 +11,7 @@
  * DS1337 Real Time Clock (RTC).
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index 89442f9..895dbba 100644 (file)
@@ -13,7 +13,7 @@
  * based on ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <rtc.h>
 #include <i2c.h>
index bd32ed2..d6267d6 100644 (file)
@@ -14,7 +14,7 @@
  * copied from ds1337.c
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index 16501cf..7314ba2 100644 (file)
@@ -3,7 +3,6 @@
  * (C) Copyright 2019, Vaisala Oyj
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
index 6f47d82..97a8d9b 100644 (file)
@@ -5,11 +5,11 @@
  * This driver emulates a real time clock based on timer ticks.
  */
 
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <env.h>
 #include <rtc.h>
+#include <time.h>
 #include <timestamp.h>
 
 /**
index 85fcee3..c202261 100644 (file)
@@ -15,7 +15,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <rtc.h>
 #include <bcd.h>
index c307d60..ea11c72 100644 (file)
@@ -13,7 +13,6 @@
  * time-keeping. It does not change the system time.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
index 59a60b7..83db505 100644 (file)
@@ -11,7 +11,6 @@
  * ISL1208 Real Time Clock (RTC).
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
index 891fe09..7bfea9e 100644 (file)
@@ -16,7 +16,7 @@
 
 /* #define     DEBUG   */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index 6c2aef8..9e396bc 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2008, Guennadi Liakhovetski <lg@denx.de>
  */
 
-#include <common.h>
 #include <rtc.h>
 #include <spi.h>
 #include <power/pmic.h>
index 03ce081..c0d86c6 100644 (file)
@@ -8,7 +8,6 @@
  * Date & Time support for the MC146818 (PIXX4) RTC
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
index d2ac889..b5cc6b9 100644 (file)
@@ -4,7 +4,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-#include <common.h>
 
 #include <command.h>
 #include <rtc.h>
index 50240d5..f070c68 100644 (file)
@@ -8,7 +8,6 @@
  * Date & Time support for Marvell Integrated RTC
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <rtc.h>
index be899a9..69d22a4 100644 (file)
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <rtc.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
index 2f3fafb..27a340f 100644 (file)
@@ -5,7 +5,6 @@
 
 /*     #define DEBUG   */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
index 91a4124..03bef68 100644 (file)
@@ -10,7 +10,7 @@
 
 /* #define     DEBUG   */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index a1d3766..855ee91 100644 (file)
@@ -6,7 +6,6 @@
  * reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <errno.h>
index e0a7bd3..79df078 100644 (file)
@@ -18,7 +18,7 @@
  * It has 56 bytes of nonvolatile RAM.
  */
 
-#include <common.h>
+#include <config.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index e5ae6ea..8f6c0c6 100644 (file)
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
index 9c53c7f..a82acec 100644 (file)
@@ -7,7 +7,6 @@
  *   Michael Buesch <m@bues.ch>
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
index 06a4ae8..82b4372 100644 (file)
@@ -10,7 +10,6 @@
  *
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <log.h>
index bf93b55..0d778f4 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 #include <command.h>
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
index 1394c23..c789524 100644 (file)
@@ -8,7 +8,6 @@
  * Epson RX8025 RTC driver.
  */
 
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <i2c.h>
index 80f55c8..03fb9a0 100644 (file)
@@ -18,7 +18,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <linux/bitrev.h>
index 657e5c7..4404501 100644 (file)
@@ -4,7 +4,6 @@
  * Written by Simon Glass <sjg@chromium.org>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
index ec7584c..ee70c11 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
index ab9b93c..15122a0 100644 (file)
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_RTC
 
-#include <common.h>
 #include <dm.h>
 #include <rtc.h>
 #include <asm/io.h>