diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-08-07 19:56:14 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-09-21 18:42:56 +0100 |
commit | d53f6cdc1e5a974d12172978a1f0f8c555d011cb (patch) | |
tree | 7e4be2e81b3aba3c3434871d820dc56e2a7e0149 /drivers/perf | |
parent | 93176acee936d330b600ca93b3ca6e9c40053fa9 (diff) | |
download | linux-d53f6cdc1e5a974d12172978a1f0f8c555d011cb.tar.bz2 |
iio: proximity: sx9324: Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
These new macros avoid the need for marking the callbacks __maybe_unused
whilst ensuring both callbacks and structure may be dropped by the compiler
if CONFIG_PM_SLEEP is not enabled.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Gwendal Grignou <gwendal@chromium.org>
Link: https://lore.kernel.org/r/20220807185618.1038812-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/perf')
0 files changed, 0 insertions, 0 deletions