]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
watchdog: npcm: remove whitespaces
authorTomer Maimon <tmaimon77@gmail.com>
Tue, 3 Mar 2020 10:01:14 +0000 (12:01 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 18 Mar 2020 10:15:25 +0000 (11:15 +0100)
Signed-off-by: Tomer Maimon <tmaimon77@gmail.com>
Link: https://lore.kernel.org/r/20200303100114.87786-4-tmaimon77@gmail.com
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/npcm_wdt.c

index 9c773c3d6d5dc5b9c0f23d33aef332c56304ab5b..765577f11c8db371ff3b8d654a8dc3bc73fb9041 100644 (file)
@@ -103,30 +103,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);