mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 01:21:58 +00:00
power: supply: bq27xxx_battery: allow kernel poll_interval parameter runtime update
Fix issue with poll_interval being not updated till the previous interval expired. Cc: Tony Lindgren <tony@atomide.com> Cc: Liam Breck <liam@networkimprov.net> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
389958bb6b
commit
1d72706f04
2 changed files with 38 additions and 1 deletions
|
@ -58,6 +58,7 @@ struct bq27xxx_device_info {
|
|||
unsigned long last_update;
|
||||
struct delayed_work work;
|
||||
struct power_supply *bat;
|
||||
struct list_head list;
|
||||
struct mutex lock;
|
||||
u8 *regs;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue