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:
Matt Ranostay 2016-09-19 20:43:02 -07:00 committed by Sebastian Reichel
parent 389958bb6b
commit 1d72706f04
2 changed files with 38 additions and 1 deletions

View file

@ -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;
};