diff options
author | 2025-02-07 11:25:28 -0500 | |
---|---|---|
committer | 2025-02-12 09:44:29 +0200 | |
commit | 2f2cd4a0595d894ba53d95e2a230032f8615dcdd (patch) | |
tree | 3cb6865350afb65abe6be82d3090fe97a740480a /drivers/gpu/drm/meson/meson_encoder_dsi.c | |
parent | drm: zynqmp_dp: Fix a deadlock in zynqmp_dp_ignore_hpd_set() (diff) | |
download | wireguard-linux-2f2cd4a0595d894ba53d95e2a230032f8615dcdd.tar.xz wireguard-linux-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 <sean.anderson@linux.dev>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250207162528.1651426-3-sean.anderson@linux.dev
Diffstat (limited to 'drivers/gpu/drm/meson/meson_encoder_dsi.c')
0 files changed, 0 insertions, 0 deletions