Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3231662ybf; Tue, 3 Mar 2020 02:03:18 -0800 (PST) X-Google-Smtp-Source: ADFU+vtfIy2BqzUSDM+2SkjpzwflTKi6l/IPPPbwGynxUrusqwekrab1cPlatq3om7zawPfhJ/hJ X-Received: by 2002:aca:cf48:: with SMTP id f69mr1801037oig.122.1583229797576; Tue, 03 Mar 2020 02:03:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583229797; cv=none; d=google.com; s=arc-20160816; b=FBhCV4zm2ITs77u/bjL7nVaDnACx07Ta1ENfoA7Wjuo74FTOBtZnMEQ8oaIjC0Sdl6 s/GsDFA/TAbEr5UzW+r+o91DqyKYH/Hp2e7aFiesyeVd488dkLWUj8mFQoqgF/cRmNNm mzAHk72JRNV9m2nYLtMisxs3eFMsIDMZYYLe2lPaNstA5ZJ5pIxBdPNcDD5QaCz80dIC KewECTA8t7qFmxcn0WUibvdsGg/HUwUpG4gOfrDrbrDroDhgRg0QoMyFGOJ6i8Y69uE/ sxyyLmqkW6GPIu0OyziL9ZkK/DwnF9yNnQ7XFk3hPPxNzMnp++C9+9JhBR/g5nqUGyFL 9Ixw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fyf1aToEiRDOurHo0e4ULb9tWCAdsi4o7c50FTZCBqQ=; b=VnLMqoKIrktEsb3RfkD7p+W6QPLmja5N4vxAxlpdnMMnh6MYUu+0nRqb9k1zaDicOs JF/bCP/PKAiwjq7eAZiwmkT+txRQSXpNolKlBhfGVUqZcgRdN+ddE9bab8dvX4a5KCtb N9kvtZNEx1+rE61tQRRhDuKV1ASLYpG2j7Q9NRXPF1UVBkdOhhZpCp5L/RQp8yu6jUiA qyBMNmBRYo9MzUPVBvKuLec+6jleLZxIfqvnHtap6DuqDAzX1gVZbyU25o2gOYBKYxOs YE+JnaL4Hvd0/BbSFOEXbDNH0elAfGZkDhvdFBS2Lor8+NbwnDExSrHaoDJhWP+rmY2Z UvLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m82si7776900oig.129.2020.03.03.02.03.05; Tue, 03 Mar 2020 02:03:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728409AbgCCKCl (ORCPT + 99 others); Tue, 3 Mar 2020 05:02:41 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:38680 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728242AbgCCKCi (ORCPT ); Tue, 3 Mar 2020 05:02:38 -0500 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id 023A1IvJ019843; Tue, 3 Mar 2020 12:01:18 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 20D19603B0; Tue, 3 Mar 2020 12:01:18 +0200 (IST) From: Tomer Maimon To: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, mark.rutland@arm.com, joel@jms.id.au, avifishman70@gmail.com, tali.perry1@gmail.com, yuenn@google.com, benjaminfair@google.com Cc: linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Tomer Maimon Subject: [PATCH v2 3/3] watchdog: npcm: remove whitespaces Date: Tue, 3 Mar 2020 12:01:14 +0200 Message-Id: <20200303100114.87786-4-tmaimon77@gmail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200303100114.87786-1-tmaimon77@gmail.com> References: <20200303100114.87786-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Tomer Maimon --- drivers/watchdog/npcm_wdt.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/watchdog/npcm_wdt.c b/drivers/watchdog/npcm_wdt.c index 84a728af6664..bd38bf1ee6a1 100644 --- a/drivers/watchdog/npcm_wdt.c +++ b/drivers/watchdog/npcm_wdt.c @@ -123,30 +123,29 @@ static int npcm_wdt_stop(struct watchdog_device *wdd) return 0; } - static int npcm_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) { if (timeout < 2) wdd->timeout = 1; else if (timeout < 3) - wdd->timeout = 2; + wdd->timeout = 2; else if (timeout < 6) - wdd->timeout = 5; + wdd->timeout = 5; else if (timeout < 11) - wdd->timeout = 10; + wdd->timeout = 10; else if (timeout < 22) - wdd->timeout = 21; + wdd->timeout = 21; else if (timeout < 44) - wdd->timeout = 43; + wdd->timeout = 43; else if (timeout < 87) - wdd->timeout = 86; + wdd->timeout = 86; else if (timeout < 173) - wdd->timeout = 172; + wdd->timeout = 172; else if (timeout < 688) - wdd->timeout = 687; + wdd->timeout = 687; else - wdd->timeout = 2750; + wdd->timeout = 2750; if (watchdog_active(wdd)) npcm_wdt_start(wdd); -- 2.22.0