summaryrefslogtreecommitdiff
path: root/drivers/watchdog/mlx_wdt.c
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2021-09-07 12:27:32 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2021-10-26 22:31:10 +0300
commitdd29cb4b88bc283ea4f01f8e0f38086f091dd348 (patch)
tree563a56f436cfbb8e94bcfc596fbe31d230056b21 /drivers/watchdog/mlx_wdt.c
parentb3220bde5e85db4552171419a2b421a964b40d32 (diff)
downloadlinux-dd29cb4b88bc283ea4f01f8e0f38086f091dd348.tar.xz
watchdog: mlx-wdt: Use regmap_write_bits()
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>
Diffstat (limited to 'drivers/watchdog/mlx_wdt.c')
-rw-r--r--drivers/watchdog/mlx_wdt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/watchdog/mlx_wdt.c b/drivers/watchdog/mlx_wdt.c
index 54193369e85c..9c5b6616fc87 100644
--- a/drivers/watchdog/mlx_wdt.c
+++ b/drivers/watchdog/mlx_wdt.c
@@ -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,