drm/i915/fbc: Use lockdep_assert_held()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 20 Jun 2022 18:29:17 +0000 (21:29 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 20 Sep 2022 09:18:32 +0000 (12:18 +0300)
commit9045c0529c40c1a9227d58cfb494033c82274a7d
tree816a1c23f26fc5516797f051ac69f7a6a3be8f26
parentbff0d857053bdacbde1e0deea3b468de3a2b7234
drm/i915/fbc: Use lockdep_assert_held()

Replace the mutex_is_locked() stuff with lockdep_assert_held() since
that's what it's there for.

Also sprinkle these around so that we have more or less
mirrored coverage for the enable vs. disable instead of the
current situation where the asserts seem to be more or less
randomly thrown around.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220620182917.10765-2-ville.syrjala@linux.intel.com
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
drivers/gpu/drm/i915/display/intel_fbc.c