aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2022-08-07 19:56:16 +0100
committerJonathan Cameron <[email protected]>2022-09-21 18:42:56 +0100
commit1364262c8a381dd929f0973f92402c70d4e81b9f (patch)
treebe4966ceb78d9d8a5eeae1f3ac69dd9bac788acf /tools/perf/scripts/python/net_dropmonitor.py
parent5c682eeecf8a255974e1f8b0695e3de40cb518a6 (diff)
iio: proximity: srf04: Use pm_ptr() to remove unused struct dev_pm_ops
If CONFIG_PM is not set, the pm_ptr() will ensure that the struct dev_pm_ops and callbacks are removed without the need for __maybe_unused markings. In this case we can't simply use DEFINE_RUNTIME_DEV_PM_OPS() because that would provide suspend and resume functions without the checks the driver is doing before calling runtime_pm functions (whether the necessary GPIO is provided). It may be possible to clean that up in future by moving the checks into the callbacks. Signed-off-by: Jonathan Cameron <[email protected]> Cc: Andreas Klinger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions