Skip to contentSkip to conversation

rtc: ds3231/ds3232: fix coding style

U-Boot Biwen Li 2 participants 2 messages Aug 27, 2019 – Sep 20, 2019 Real time clock (RTC)

lore
Share & tools
lore

Biwen Li

author
#0 lore raw

The patch fixes coding style

---
 drivers/rtc/ds3231.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/rtc/ds3231.c +2 -1
index fde4d860ec..eb5ce73a76 100644
@@ -260,10 +260,11 @@ int rtc_enable_32khz_output(int busnum, int chip_addr)
 	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
Signature · 1 line
2.17.1
#1 lore raw
Quoted 3 lines · Biwen Li

The patch fixes coding style

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190920/f5fdc7c6/attachment.sig>