Commit 4d3df956fbe8e53954c8649c5279d59b44a9bd51
Committed by
Tom Rini
1 parent
d27db67e6b
Exists in
smarc_8mq_lf_v2020.04
and in
11 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
drivers/rtc/m41t62.c
... | ... | @@ -108,7 +108,8 @@ |
108 | 108 | /* assume 20YY not 19YY */ |
109 | 109 | buf[M41T62_REG_YEAR] = bin2bcd(tm->tm_year % 100); |
110 | 110 | |
111 | - if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, M41T62_DATETIME_REG_SIZE)) { | |
111 | + if (i2c_write(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, buf, | |
112 | + M41T62_DATETIME_REG_SIZE)) { | |
112 | 113 | printf("I2C write failed in %s()\n", __func__); |
113 | 114 | return -1; |
114 | 115 | } |