diff options
| author | Waqar Hameed <waqar.hameed@axis.com> | 2026-06-29 17:44:59 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-07-22 02:27:34 +0200 |
| commit | 0e2a6f7c0fa69293fa6f53dcf3406a9d7a1b1816 (patch) | |
| tree | 7f15634d128ccb696dca00b8db9cf80f276095be | |
| parent | 45413165bef33bb7d5544a3331f39492cdde9418 (diff) | |
| download | linux-0e2a6f7c0fa69293fa6f53dcf3406a9d7a1b1816.tar.gz linux-0e2a6f7c0fa69293fa6f53dcf3406a9d7a1b1816.zip | |
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 <waqar.hameed@axis.com>
Link: https://patch.msgid.link/5c9b9ac1599704ff94dba34b9b2a82f62f348bd4.1782746851.git.waqar.hameed@axis.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
| -rw-r--r-- | drivers/power/supply/bq24190_charger.c | 4 |
1 files changed, 0 insertions, 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 |
