iio: light: apds9960: correct ->last_busy count
authorMatt Ranostay <mranostay@gmail.com>
Sun, 8 Nov 2015 04:21:28 +0000 (20:21 -0800)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 Nov 2015 15:57:04 +0000 (15:57 +0000)
commit8386c27587594899e4b638010fa0187fe068b295
tree3601279afa18f53cddca9a5633281e153abede02
parent45a6b8218df54087c3bb8dc731424d8789d31790
iio: light: apds9960: correct ->last_busy count

Add missing pm_runtime_mark_last_busy to apds9960_set_power_state
function.

Unless pm_runtime_mark_last_busy is called the
pm_runtime_put_autosuspend may put the device into suspend before the
delay time requested.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/apds9960.c
This page took 0.024541 seconds and 5 git commands to generate.