mirror of
https://github.com/torvalds/linux.git
synced 2026-09-29 12:24:02 +02:00
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>
This commit is contained in:
parent
45413165be
commit
0e2a6f7c0f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user