From patchwork Tue Aug 27 08:03:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biwen Li X-Patchwork-Id: 1153744 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nxp.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46Hlrp5qlTz9s00 for ; Tue, 27 Aug 2019 20:45:30 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 748C4C22026; Tue, 27 Aug 2019 10:45:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id EE6FFC21FF6; Tue, 27 Aug 2019 10:44:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D49DC21E9F; Tue, 27 Aug 2019 08:00:57 +0000 (UTC) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by lists.denx.de (Postfix) with ESMTPS id B5FEFC21E39 for ; Tue, 27 Aug 2019 08:00:56 +0000 (UTC) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7EA831A085C; Tue, 27 Aug 2019 10:00:56 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 232D01A05BB; Tue, 27 Aug 2019 10:00:53 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 1F83E4031D; Tue, 27 Aug 2019 16:00:49 +0800 (SGT) From: Biwen Li To: prabhakar.kushwaha@nxp.com, lukma@denx.de Date: Tue, 27 Aug 2019 16:03:01 +0800 Message-Id: <20190827080301.4300-1-biwen.li@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailman-Approved-At: Tue, 27 Aug 2019 10:44:34 +0000 Cc: u-boot@lists.denx.de, xiaobo.xie@nxp.com, xiaowei.bao@nxp.com Subject: [U-Boot] rtc: ds3231/ds3232: fix coding style X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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