OSDN Git Service

power: supply: bq27xxx_battery: don't update poll_interval param if same
authorMatt Ranostay <mranostay@gmail.com>
Sat, 1 Oct 2016 04:45:30 +0000 (21:45 -0700)
committerSebastian Reichel <sre@kernel.org>
Wed, 19 Oct 2016 03:06:28 +0000 (05:06 +0200)
commit950b6c2d110e8df65b9d2704cc7039f3d0d9f7b2
tree205f5a3dfec7543484920eaf9671f0945c52c595
parent32c52eff6a27798706487e042fae7bac6dd73576
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>
drivers/power/supply/bq27xxx_battery.c