mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-16 12:11:32 +00:00
rtc: ds3231/ds3232: fix coding style
The patch fixes coding style Signed-off-by: Biwen Li <biwen.li@nxp.com>
This commit is contained in:
parent
e327768c3a
commit
d64e01f367
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue