Home
last modified time | relevance | path

Searched hist:"950 b6c2d" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/power/supply/
H A Dbq27xxx_battery.c950b6c2d Fri Sep 30 23:45:30 CDT 2016 Matt Ranostay <mranostay@gmail.com> power: supply: bq27xxx_battery: don't update poll_interval param if same

To avoid canceling the delayed workqueue needlessly, and scheduling an
immediate polling. Check if the new poll_interval value is different
than the previous setting.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
950b6c2d Fri Sep 30 23:45:30 CDT 2016 Matt Ranostay <mranostay@gmail.com> power: supply: bq27xxx_battery: don't update poll_interval param if same

To avoid canceling the delayed workqueue needlessly, and scheduling an
immediate polling. Check if the new poll_interval value is different
than the previous setting.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Matt Ranostay <matt@ranostay.consulting>
Signed-off-by: Sebastian Reichel <sre@kernel.org>