summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Vasut <marek.vasut+renesas@mailbox.org>2024-07-20 14:40:53 +0200
committerTom Rini <trini@konsulko.com>2024-07-22 10:53:06 -0600
commite08701e471dfe7d10201b93986084920d2f8f0de (patch)
treebd00ef82001edf0d6489994590945753186fdd33
parent893f111d411bb343c2e821cc0e80c255f7748af4 (diff)
downloadu-boot-e08701e471dfe7d10201b93986084920d2f8f0de.tar.gz
u-boot-e08701e471dfe7d10201b93986084920d2f8f0de.tar.bz2
u-boot-e08701e471dfe7d10201b93986084920d2f8f0de.zip
drivers: rtc: Remove duplicate newlines
Drop all duplicate newlines. No functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
-rw-r--r--drivers/rtc/ds1307.c5
-rw-r--r--drivers/rtc/ds1337.c5
-rw-r--r--drivers/rtc/ds3231.c6
-rw-r--r--drivers/rtc/mcfrtc.c1
-rw-r--r--drivers/rtc/rv3029.c2
5 files changed, 0 insertions, 19 deletions
diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c
index ba06ff9f0b..0492109910 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 7eccf1cb8c..77544298d8 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 d6267d660d..6341a1d62b 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 b5cc6b9688..9708971c5c 100644
--- a/drivers/rtc/mcfrtc.c
+++ b/drivers/rtc/mcfrtc.c
@@ -4,7 +4,6 @@
* TsiChung Liew (Tsi-Chung.Liew@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 a82acec6f7..8c80fe9cb7 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);