]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
watchdog: rzn1: Fix reverse xmas tree declaration
authorHerve Codina (Schneider Electric) <herve.codina@bootlin.com>
Tue, 24 Mar 2026 11:48:44 +0000 (12:48 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 3 May 2026 15:38:09 +0000 (08:38 -0700)
Variables declared in probe() don't follow the reverse xmas
tree convention.

Fix the declaration in order to follow the convention.

Signed-off-by: Herve Codina (Schneider Electric) <herve.codina@bootlin.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20260324114849.242755-2-herve.codina@bootlin.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/watchdog/rzn1_wdt.c

index 0b57540692f90c940d50530298bb42f98758612c..48d5afef62a51abd137ac8027e4dd335b353dc11 100644 (file)
@@ -101,10 +101,10 @@ static const struct watchdog_ops rzn1_wdt_ops = {
 static int rzn1_wdt_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
-       struct rzn1_watchdog *wdt;
        struct device_node *np = dev->of_node;
-       struct clk *clk;
+       struct rzn1_watchdog *wdt;
        unsigned long clk_rate;
+       struct clk *clk;
        int ret;
        int irq;