aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2021-05-16 17:20:58 +0100
committerJonathan Cameron <[email protected]>2021-06-16 14:53:13 +0100
commit40b54cbebf16c4b2275dabe1569d2a3f89d3cc59 (patch)
tree20167486f4ad6b6518f96f615b6a79e68c1f827c /tools/perf/scripts/python
parent12f13d1faead80884f41781e8792ab397812c0c7 (diff)
iio: imu: mpu6050: Balance runtime pm + use pm_runtime_resume_and_get()
Remove an unblanced pm_runtime_put_sync_suspend() call in inv_pu_pm_disable(). Not this call is not a bug, because the runtime pm core will not allow the reference counter to go negative. It is however confusing and serves no purpose. pm_runtime_resume_and_get() case found using coccicheck script under review at: https://lore.kernel.org/lkml/[email protected]/ pm_runtime_resume_and_get() returns <= 0 only so simplify related checks to bring this more inline with nearby calls. This is a prequel to taking a closer look at the runtime pm in IIO drivers in general. Signed-off-by: Jonathan Cameron <[email protected]> Cc: Jean-Baptiste Maneyrol <[email protected]> Reviewed-by: Mauro Carvalho Chehab <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions