watchdog: mlx-wdt: Use regmap_write_bits()
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 7 Sep 2021 09:27:32 +0000 (11:27 +0200)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Tue, 26 Oct 2021 19:31:10 +0000 (21:31 +0200)
Use the regmap_write_bits() macro instead of regmap_update_bits_base().
No functional change.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210907092732.31815-1-p.zabel@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/mlx_wdt.c

index 5419336..9c5b661 100644 (file)
@@ -100,9 +100,8 @@ static int mlxreg_wdt_ping(struct watchdog_device *wdd)
        struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd);
        struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->ping_idx];
 
-       return regmap_update_bits_base(wdt->regmap, reg_data->reg,
-                                      ~reg_data->mask, BIT(reg_data->bit),
-                                      NULL, false, true);
+       return regmap_write_bits(wdt->regmap, reg_data->reg, ~reg_data->mask,
+                                BIT(reg_data->bit));
 }
 
 static int mlxreg_wdt_set_timeout(struct watchdog_device *wdd,