drivers: rtc: Remove duplicate newlines
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 20 Jul 2024 12:40:53 +0000 (14:40 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jul 2024 16:53:06 +0000 (10:53 -0600)
Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/rtc/ds1307.c
drivers/rtc/ds1337.c
drivers/rtc/ds3231.c
drivers/rtc/mcfrtc.c
drivers/rtc/rv3029.c

index ba06ff9..0492109 100644 (file)
@@ -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);
index 7eccf1c..7754429 100644 (file)
@@ -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);
index d6267d6..6341a1d 100644 (file)
@@ -34,7 +34,6 @@
 #define RTC_CTL_REG_ADDR       0x0e
 #define RTC_STAT_REG_ADDR      0x0f
 
-
 /*
  * RTC control register bits
  */
 #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);
index b5cc6b9..9708971 100644 (file)
@@ -4,7 +4,6 @@
  * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
  */
 
-
 #include <command.h>
 #include <rtc.h>
 #include <asm/immap.h>
index a82acec..8c80fe9 100644 (file)
@@ -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);