rtc: m41t62: Break i2c_write() arguments to fix checkpatch warning
authorLukasz Majewski <lukma@denx.de>
Thu, 22 Nov 2018 13:54:32 +0000 (14:54 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 3 Dec 2018 15:44:10 +0000 (10:44 -0500)
No functional change for this commit.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/rtc/m41t62.c

index 137438389db758bf2572c084ce1735b5e958c850..cc230e2b78ee49a0c0604b8acd2834c2d2799272 100644 (file)
@@ -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;
        }