diff options
| author | Sean Anderson <[email protected]> | 2025-02-07 16:25:28 +0000 |
|---|---|---|
| committer | Tomi Valkeinen <[email protected]> | 2025-02-12 07:44:29 +0000 |
| commit | 2f2cd4a0595d894ba53d95e2a230032f8615dcdd (patch) | |
| tree | 3cb6865350afb65abe6be82d3090fe97a740480a /drivers/gpu/drm/lima/lima_sched.c | |
| parent | drm: zynqmp_dp: Fix a deadlock in zynqmp_dp_ignore_hpd_set() (diff) | |
| download | kernel-2f2cd4a0595d894ba53d95e2a230032f8615dcdd.tar.gz kernel-2f2cd4a0595d894ba53d95e2a230032f8615dcdd.zip | |
drm: zynqmp_dp: Use scope-based mutex helpers
Convert most mutex_(un)lock calls to use (scoped_)guard instead. This
generally reduces line count and prevents bugs like forgetting to unlock
the mutex. I've left traditional calls in a few places where scoped
helpers would be more verbose. This mostly happens where
debugfs_file_put needs to be called regardless. I looked into defining a
CLASS for debugfs_file, but it seems like more effort than it's worth
since debugfs_file_get can fail.
Signed-off-by: Sean Anderson <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_sched.c')
0 files changed, 0 insertions, 0 deletions
