[PATCH 28/40] drivers: rtc: Remove duplicate newlines

Marek Vasut marek.vasut+renesas at mailbox.org
Sat Jul 20 14:40:53 CEST 2024


Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
---
 drivers/rtc/ds1307.c | 5 -----
 drivers/rtc/ds1337.c | 5 -----
 drivers/rtc/ds3231.c | 6 ------
 drivers/rtc/mcfrtc.c | 1 -
 drivers/rtc/rv3029.c | 2 --
 5 files changed, 19 deletions(-)

diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index ba06ff9f0be..04921099101 100644
--- a/drivers/rtc/ds1307.c
+++ b/drivers/rtc/ds1307.c
@@ -139,7 +139,6 @@ read_rtc:
 	}
 #endif
 
-
 	tmp->tm_sec  = bcd2bin (sec & 0x7F);
 	tmp->tm_min  = bcd2bin (min & 0x7F);
 	tmp->tm_hour = bcd2bin (hour & 0x3F);
@@ -157,7 +156,6 @@ read_rtc:
 	return rel;
 }
 
-
 /*
  * Set the RTC
  */
@@ -190,7 +188,6 @@ int rtc_set (struct rtc_time *tmp)
 	return 0;
 }
 
-
 /*
  * Reset the RTC. We setting the date back to 1970-01-01.
  * We also enable the oscillator output on the SQW/OUT pin and program
@@ -204,7 +201,6 @@ void rtc_reset (void)
 	rtc_write (RTC_CTL_REG_ADDR, RTC_CTL_BIT_SQWE | RTC_CTL_BIT_RS1 | RTC_CTL_BIT_RS0);
 }
 
-
 /*
  * Helper functions
  */
@@ -215,7 +211,6 @@ uchar rtc_read (uchar reg)
 	return (i2c_reg_read (CFG_SYS_I2C_RTC_ADDR, reg));
 }
 
-
 static void rtc_write (uchar reg, uchar val)
 {
 	i2c_reg_write (CFG_SYS_I2C_RTC_ADDR, reg, val);
diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c
index 7eccf1cb8c5..77544298d8a 100644
--- a/drivers/rtc/ds1337.c
+++ b/drivers/rtc/ds1337.c
@@ -62,7 +62,6 @@
 #define RTC_STAT_BIT_A2F	0x2	/* Alarm 2 flag			*/
 #define RTC_STAT_BIT_OSF	0x80	/* Oscillator stop flag		*/
 
-
 #if !CONFIG_IS_ENABLED(DM_RTC)
 static uchar rtc_read (uchar reg);
 static void rtc_write (uchar reg, uchar val);
@@ -119,7 +118,6 @@ int rtc_get (struct rtc_time *tmp)
 	return rel;
 }
 
-
 /*
  * Set the RTC
  */
@@ -145,7 +143,6 @@ int rtc_set (struct rtc_time *tmp)
 	return 0;
 }
 
-
 /*
  * Reset the RTC.  We also enable the oscillator output on the
  * SQW/INTB* pin and program it for 32,768 Hz output. Note that
@@ -176,7 +173,6 @@ void rtc_reset (void)
 #endif
 }
 
-
 /*
  * Helper functions
  */
@@ -187,7 +183,6 @@ uchar rtc_read (uchar reg)
 	return (i2c_reg_read (CFG_SYS_I2C_RTC_ADDR, reg));
 }
 
-
 static void rtc_write (uchar reg, uchar val)
 {
 	i2c_reg_write (CFG_SYS_I2C_RTC_ADDR, reg, val);
diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c
index d6267d660d0..6341a1d62b8 100644
--- a/drivers/rtc/ds3231.c
+++ b/drivers/rtc/ds3231.c
@@ -34,7 +34,6 @@
 #define RTC_CTL_REG_ADDR	0x0e
 #define RTC_STAT_REG_ADDR	0x0f
 
-
 /*
  * RTC control register bits
  */
@@ -54,12 +53,10 @@
 #define RTC_STAT_BIT_BB32KHZ	0x40	/* Battery backed 32KHz Output  */
 #define RTC_STAT_BIT_EN32KHZ	0x8	/* Enable 32KHz Output  */
 
-
 #if !CONFIG_IS_ENABLED(DM_RTC)
 static uchar rtc_read (uchar reg);
 static void rtc_write (uchar reg, uchar val);
 
-
 /*
  * Get the current time from the RTC
  */
@@ -107,7 +104,6 @@ int rtc_get (struct rtc_time *tmp)
 	return rel;
 }
 
-
 /*
  * Set the RTC
  */
@@ -133,7 +129,6 @@ int rtc_set (struct rtc_time *tmp)
 	return 0;
 }
 
-
 /*
  * Reset the RTC.  We also enable the oscillator output on the
  * SQW/INTB* pin and program it for 32,768 Hz output. Note that
@@ -167,7 +162,6 @@ uchar rtc_read (uchar reg)
 	return (i2c_reg_read (CFG_SYS_I2C_RTC_ADDR, reg));
 }
 
-
 static void rtc_write (uchar reg, uchar val)
 {
 	i2c_reg_write (CFG_SYS_I2C_RTC_ADDR, reg, val);
diff --git a/drivers/rtc/mcfrtc.c b/drivers/rtc/mcfrtc.c
index b5cc6b96881..9708971c5c4 100644
--- a/drivers/rtc/mcfrtc.c
+++ b/drivers/rtc/mcfrtc.c
@@ -4,7 +4,6 @@
  * TsiChung Liew (Tsi-Chung.Liew at freescale.com)
  */
 
-
 #include <command.h>
 #include <rtc.h>
 #include <asm/immap.h>
diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c
index a82acec6f7e..8c80fe9cb79 100644
--- a/drivers/rtc/rv3029.c
+++ b/drivers/rtc/rv3029.c
@@ -73,7 +73,6 @@
 					 RV3029_TRICKLE_80K)
 #define RV3029_TRICKLE_SHIFT		4
 
-
 static int rv3029_rtc_get(struct udevice *dev, struct rtc_time *tm)
 {
 	u8 regs[RTC_RV3029_PAGE_LEN];
@@ -127,7 +126,6 @@ static int rv3029_rtc_set(struct udevice *dev, const struct rtc_time *tm)
 	      __func__, tm->tm_year, tm->tm_mon, tm->tm_mday,
 	      tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec);
 
-
 	if (tm->tm_year < 2000) {
 		printf("%s: year %d (before 2000) not supported\n",
 		       __func__, tm->tm_year);
-- 
2.43.0



More information about the U-Boot mailing list