commit | d64e01f367c90ec7791ec3982abe191fe82953c8 | [log] [tgz] |
---|---|---|
author | Biwen Li <biwen.li@nxp.com> | Tue Aug 27 15:32:36 2019 +0800 |
committer | Tom Rini <trini@konsulko.com> | Thu Sep 19 12:18:53 2019 -0400 |
tree | 4328d688e9b55023884c15e3b0d82c344892fbb6 | |
parent | e327768c3af8090f912922852939de619a59e3ab [diff] |
rtc: ds3231/ds3232: fix coding style The patch fixes coding style Signed-off-by: Biwen Li <biwen.li@nxp.com>
diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c index fde4d86..eb5ce73 100644 --- a/drivers/rtc/ds3231.c +++ b/drivers/rtc/ds3231.c
@@ -260,10 +260,11 @@ struct udevice *dev; ret = i2c_get_chip_for_busnum(busnum, chip_addr, 1, &dev); - if (!ret) + if (!ret) { ret = dm_i2c_reg_write(dev, RTC_STAT_REG_ADDR, RTC_STAT_BIT_BB32KHZ | RTC_STAT_BIT_EN32KHZ); + } return ret; } #endif