drm/i915: Make intel_pipe_has_type() take an output type enum
Subsystems (2)
PATCH 1/1 drm/i915: Make intel_pipe_has_type() take an output type enum
As Paulo said when introducing the enum, having more types is really good to document what should go where (int foo(int, int, bool, bool).
Cc Paulo Zanoni <[email protected]>
Signed-off-by Damien Lespiau <[email protected]>
--- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_drv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +1 -1
@@ -408,7 +408,7 @@ static void vlv_clock(int refclk, intel_clock_t *clock)/** * Returns whether any output on the specified pipe is of the specified type */ -bool intel_pipe_has_type (struct intel_crtc *crtc,int type) +bool intel_pipe_has_type (struct intel_crtc *crtc,enum intel_output_type type) {struct drm_device *dev = crtc->base.dev;struct intel_encoder *encoder;
drivers/gpu/drm/i915/intel_drv.h +1 -1
@@ -880,7 +880,7 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data, struct drm_file *file_priv);enum transcoder intel_pipe_to_cpu_transcoder (struct drm_i915_private *dev_priv,enum pipe pipe); -bool intel_pipe_has_type (struct intel_crtc *crtc,int type); +bool intel_pipe_has_type (struct intel_crtc *crtc,enum intel_output_type type);static inline void intel_wait_for_vblank (struct drm_device *dev,int pipe) {
Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 5 lines · Damien Lespiau
As Paulo said when introducing the enum, having more types is really good to document what should go where (int
foo(int, int, bool, bool).Cc Paulo Zanoni <[email protected]>Signed-off-by Damien Lespiau <[email protected]>
Reviewed-by Jani Nikula <[email protected]>
Quoted 38 lines
--- drivers/gpu/drm/i915/intel_display.c | 2 +- drivers/gpu/drm/i915/intel_drv.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/i915/intel_display.c +1
-1@@ -408,7 +408,7 @@ static void vlv_clock(int refclk, intel_clock_t *clock)/** * Returns whether any output on the specified pipe is of the specified type */ -bool intel_pipe_has_type (struct intel_crtc *crtc,int type) +bool intel_pipe_has_type (struct intel_crtc *crtc,enum intel_output_type type) {struct drm_device *dev = crtc->base.dev;struct intel_encoder *encoder;drivers/gpu/drm/i915/intel_drv.h +1
-1@@ -880,7 +880,7 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data, struct drm_file *file_priv);enum transcoder intel_pipe_to_cpu_transcoder (struct drm_i915_private *dev_priv,enum pipe pipe); -bool intel_pipe_has_type (struct intel_crtc *crtc,int type); +bool intel_pipe_has_type (struct intel_crtc *crtc,enum intel_output_type type);static inline void intel_wait_for_vblank (struct drm_device *dev,int pipe) {Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedQuoted 8 lines · Jani Nikula
Quoted 5 lines · Damien Lespiau
As Paulo said when introducing the enum, having more types is really good to document what should go where (int
foo(int, int, bool, bool).Cc Paulo Zanoni <[email protected]>Signed-off-by Damien Lespiau <[email protected]>Reviewed-by Jani Nikula <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx