From d64e01f367c90ec7791ec3982abe191fe82953c8 Mon Sep 17 00:00:00 2001 From: Biwen Li Date: Tue, 27 Aug 2019 15:32:36 +0800 Subject: [PATCH] rtc: ds3231/ds3232: fix coding style The patch fixes coding style Signed-off-by: Biwen Li --- drivers/rtc/ds3231.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c index fde4d860ec..eb5ce73a76 100644 --- a/drivers/rtc/ds3231.c +++ b/drivers/rtc/ds3231.c @@ -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 -- 2.25.1