]> git.baikalelectronics.ru Git - kernel.git/commit
iio: prox: pulsed-light-v2: Use pm_runtime_resume_and_get()
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 May 2021 16:21:02 +0000 (17:21 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 16 Jun 2021 13:53:13 +0000 (14:53 +0100)
commit175f9c27a77bd7a0ed66121972c3d133ca09b921
tree977bdeb3616b3a3325a85064f093a58d9da340ad
parent9b56fa7338fe3c0e4c43bc14fb43d55a0b13351c
iio: prox: pulsed-light-v2: Use pm_runtime_resume_and_get()

Using this new call makes it easy to handle any errors as a result
of runtime resume as it exits without leaving the reference count
elevated.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Acked-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20210516162103.1332291-6-jic23@kernel.org
drivers/iio/proximity/pulsedlight-lidar-lite-v2.c