summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2018-11-22 14:54:32 +0100
committerTom Rini <trini@konsulko.com>2018-12-03 10:44:10 -0500
commit4d3df956fbe8e53954c8649c5279d59b44a9bd51 (patch)
tree91397fb9d84cd53a59d9b110f74ff4f3e4e71de1 /drivers/rtc
parentd27db67e6b130972441ea27344d09395dee0ae42 (diff)
rtc: m41t62: Break i2c_write() arguments to fix checkpatch warning
No functional change for this commit. Signed-off-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/m41t62.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c
index 137438389d..cc230e2b78 100644
--- a/drivers/rtc/m41t62.c
+++ b/drivers/rtc/m41t62.c
@@ -108,7 +108,8 @@ int rtc_set(struct rtc_time *tm)
/* assume 20YY not 19YY */
buf[M41T62_REG_YEAR] = bin2bcd(tm->tm_year % 100);
- if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE)) {
+ if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf,
+ M41T62_DATETIME_REG_SIZE)) {
printf("I2C write failed in %s()\n", __func__);
return -1;
}