commit | 5672f3982ac98c8a8b8f1c5d4e2b3cd03342ea9d | [log] [tgz] |
---|---|---|
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Tue Jun 21 21:27:14 2022 +0100 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Mon Jul 18 18:48:19 2022 +0100 |
tree | 7f80d1a3995d163ff313da250fb422d9a59620c9 | |
parent | f541541a37e4887f89b5b5473d41cf88671eb1a4 [diff] |
iio: light: tsl2591: Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr() Using these new macros allows removal of unused pm_ops structure and functions if !CONFIG_PM without the need to mark the functions __maybe_unused. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Cc: Joe Sandom <joe.g.sandom@gmail.com> Reviewed-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20220621202719.13644-32-jic23@kernel.org