From 0e2a6f7c0fa69293fa6f53dcf3406a9d7a1b1816 Mon Sep 17 00:00:00 2001 From: Waqar Hameed Date: Mon, 29 Jun 2026 17:44:59 +0200 Subject: [PATCH] power: supply: bq24190: Remove unused watchdog struct field The field member `watchdog` in `struct bq24190_dev_info` is only set once in `bq24190_set_config()` during probe, and never read again. Remove this unnecessary field. Signed-off-by: Waqar Hameed Link: https://patch.msgid.link/5c9b9ac1599704ff94dba34b9b2a82f62f348bd4.1782746851.git.waqar.hameed@axis.com Signed-off-by: Sebastian Reichel --- drivers/power/supply/bq24190_charger.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c index 2a1ea83898ae..19f5c61a2986 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -243,7 +243,6 @@ struct bq24190_dev_info { struct mutex f_reg_lock; u8 f_reg; u8 ss_reg; - u8 watchdog; const struct bq24190_chip_info *info; }; @@ -756,9 +755,6 @@ static int bq24190_set_config(struct bq24190_dev_info *bdi) if (ret < 0) return ret; - bdi->watchdog = ((v & BQ24190_REG_CTTC_WATCHDOG_MASK) >> - BQ24190_REG_CTTC_WATCHDOG_SHIFT); - /* * According to the "Host Mode and default Mode" section of the * manual, a write to any register causes the bq24190 to switch