* [U-Boot] rtc: ds3231/ds3232: fix coding style
@ 2019-08-27 8:03 Biwen Li
2019-09-20 14:49 ` Tom Rini
0 siblings, 1 reply; 8+ messages in thread
From: Biwen Li @ 2019-08-27 8:03 UTC (permalink / raw)
To: u-boot
The patch fixes coding style
Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
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.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
2019-08-27 8:03 [U-Boot] rtc: ds3231/ds3232: fix coding style Biwen Li
@ 2019-09-20 14:49 ` Tom Rini
0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-09-20 14:49 UTC (permalink / raw)
To: u-boot
On Tue, Aug 27, 2019 at 04:03:01PM +0800, Biwen Li wrote:
> The patch fixes coding style
>
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
Applied to u-boot/master, thanks!
--
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>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
2019-08-27 8:39 Biwen Li
@ 2019-09-20 14:49 ` Tom Rini
0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-09-20 14:49 UTC (permalink / raw)
To: u-boot
On Tue, Aug 27, 2019 at 04:39:17PM +0800, Biwen Li wrote:
> The patch fixes coding style
>
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
Applied to u-boot/master, thanks!
--
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/501b2d12/attachment.sig>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
2019-08-27 8:32 Biwen Li
@ 2019-09-20 14:49 ` Tom Rini
0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-09-20 14:49 UTC (permalink / raw)
To: u-boot
On Tue, Aug 27, 2019 at 04:32:50PM +0800, Biwen Li wrote:
> The patch fixes coding style
>
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
Applied to u-boot/master, thanks!
--
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/4a8163f6/attachment.sig>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
2019-08-27 7:32 Biwen Li
@ 2019-09-20 14:49 ` Tom Rini
0 siblings, 0 replies; 8+ messages in thread
From: Tom Rini @ 2019-09-20 14:49 UTC (permalink / raw)
To: u-boot
On Tue, Aug 27, 2019 at 03:32:36PM +0800, Biwen Li wrote:
> The patch fixes coding style
>
> Signed-off-by: Biwen Li <biwen.li@nxp.com>
Applied to u-boot/master, thanks!
--
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/e924825b/attachment.sig>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
@ 2019-08-27 8:39 Biwen Li
2019-09-20 14:49 ` Tom Rini
0 siblings, 1 reply; 8+ messages in thread
From: Biwen Li @ 2019-08-27 8:39 UTC (permalink / raw)
To: u-boot
The patch fixes coding style
Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
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.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
@ 2019-08-27 8:32 Biwen Li
2019-09-20 14:49 ` Tom Rini
0 siblings, 1 reply; 8+ messages in thread
From: Biwen Li @ 2019-08-27 8:32 UTC (permalink / raw)
To: u-boot
The patch fixes coding style
Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
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.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [U-Boot] rtc: ds3231/ds3232: fix coding style
@ 2019-08-27 7:32 Biwen Li
2019-09-20 14:49 ` Tom Rini
0 siblings, 1 reply; 8+ messages in thread
From: Biwen Li @ 2019-08-27 7:32 UTC (permalink / raw)
To: u-boot
The patch fixes coding style
Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
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.17.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2019-09-20 14:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-27 8:03 [U-Boot] rtc: ds3231/ds3232: fix coding style Biwen Li
2019-09-20 14:49 ` Tom Rini
-- strict thread matches above, loose matches on Subject: below --
2019-08-27 8:39 Biwen Li
2019-09-20 14:49 ` Tom Rini
2019-08-27 8:32 Biwen Li
2019-09-20 14:49 ` Tom Rini
2019-08-27 7:32 Biwen Li
2019-09-20 14:49 ` Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.