Skip to content

Commit dd29cb4

Browse files
pH5Wim Van Sebroeck
authored andcommitted
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 <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Guenter Roeck <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent b3220bd commit dd29cb4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/watchdog/mlx_wdt.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ static int mlxreg_wdt_ping(struct watchdog_device *wdd)
100100
struct mlxreg_wdt *wdt = watchdog_get_drvdata(wdd);
101101
struct mlxreg_core_data *reg_data = &wdt->pdata->data[wdt->ping_idx];
102102

103-
return regmap_update_bits_base(wdt->regmap, reg_data->reg,
104-
~reg_data->mask, BIT(reg_data->bit),
105-
NULL, false, true);
103+
return regmap_write_bits(wdt->regmap, reg_data->reg, ~reg_data->mask,
104+
BIT(reg_data->bit));
106105
}
107106

108107
static int mlxreg_wdt_set_timeout(struct watchdog_device *wdd,

0 commit comments

Comments
 (0)