Re: [Intel-gfx] [PATCH 10/13] drm/i915: Use drm_connector_list_iter in debugfs

2016-12-14 Thread Daniel Vetter
On Wed, Dec 14, 2016 at 3:44 PM, Jani Nikula wrote: > On Wed, 14 Dec 2016, Daniel Vetter wrote: >> diff --git a/drivers/gpu/drm/i915/i915_drv.h >> b/drivers/gpu/drm/i915/i915_drv.h >> index 20bc04d5e617..7e25a7fffb1c 100644 >> --- a/drivers/gpu/drm/i915/i915_drv.h >> +++ b/drivers/gpu/drm/i915/i

Re: [Intel-gfx] [PATCH 10/13] drm/i915: Use drm_connector_list_iter in debugfs

2016-12-14 Thread Jani Nikula
On Wed, 14 Dec 2016, Daniel Vetter wrote: > diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h > index 20bc04d5e617..7e25a7fffb1c 100644 > --- a/drivers/gpu/drm/i915/i915_drv.h > +++ b/drivers/gpu/drm/i915/i915_drv.h > @@ -481,6 +481,9 @@ struct i915_hotplug { >

[Intel-gfx] [PATCH 10/13] drm/i915: Use drm_connector_list_iter in debugfs

2016-12-13 Thread Daniel Vetter
While at it also try to reduce the locking a bit to what's really just needed instead of everything that we could possibly lock. Added a new for_each_intel_connector_iter which includes the cast to intel_connector. Otherwise just plain transformation with nothing special going on. Signed-off-by: