iio: pressure: icp10100: Switch from UNIVERSAL to DEFINE_RUNTIME_DEV_PM_OPS().
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 7 Aug 2022 19:04:13 +0000 (20:04 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 5 Sep 2022 17:08:42 +0000 (18:08 +0100)
commit2f61ff8272967c9bdcba810aa978170814b08f7c
tree70998670b02da8bcdf8b3cf6e76f55b77e078c55
parentc13219cececed248df6feacb0d33326266234b7b
iio: pressure: icp10100: Switch from UNIVERSAL to DEFINE_RUNTIME_DEV_PM_OPS().

The suspend and resume callbacks in this driver appear to be safe
to call repeatedly, but why do so when we can use the
DEFINE_RUNTIME_DEV_PM_OPS() macro to supply callbacks that check if
we are already runtime suspended before doing unnecessary work.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Link: https://lore.kernel.org/r/20220807190414.1039028-2-jic23@kernel.org
drivers/iio/pressure/icp10100.c