Re: [PATCH v2 2/2] drm: zynqmp_dp: Use scope-based mutex helpers

2025-02-07 Thread Sean Anderson
On 2/7/25 11:44, Laurent Pinchart wrote: > Hi Sean, > > Thank you for the patch. > > On Fri, Feb 07, 2025 at 11:25:28AM -0500, Sean Anderson wrote: >> Convert most mutex_(un)lock calls to use (scoped_)guard instead. This >> generally reduces line count and prevents bugs like forgetting to unlock

Re: [PATCH v2 2/2] drm: zynqmp_dp: Use scope-based mutex helpers

2025-02-07 Thread Laurent Pinchart
Hi Sean, Thank you for the patch. On Fri, Feb 07, 2025 at 11:25:28AM -0500, Sean Anderson wrote: > 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 pla

[PATCH v2 2/2] drm: zynqmp_dp: Use scope-based mutex helpers

2025-02-07 Thread Sean Anderson
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 ca