From: Ander Conselvan de Oliveira Date: Wed, 4 May 2016 09:11:58 +0000 (+0300) Subject: drm/i915: Remove intel_range_t and intel_p2_t typedefs X-Git-Tag: MMI-PSA29.97-13-9~7427^2~45^2~84 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c5def93af0aa141db77424aa46d40810cc5751c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Remove intel_range_t and intel_p2_t typedefs Those are only used for defining struct intel_limit, so use anonymous structs instead. Signed-off-by: Ander Conselvan de Oliveira Reviewed-by: Jani Nikula Link: http://patchwork.freedesktop.org/patch/msgid/1462353119-9738-2-git-send-email-ander.conselvan.de.oliveira@intel.com --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 5674ce11dad5..6464eb42b749 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -118,19 +118,16 @@ static void ironlake_pfit_enable(struct intel_crtc *crtc); static void intel_modeset_setup_hw_state(struct drm_device *dev); static void intel_pre_disable_primary_noatomic(struct drm_crtc *crtc); -typedef struct { - int min, max; -} intel_range_t; - -typedef struct { - int dot_limit; - int p2_slow, p2_fast; -} intel_p2_t; - typedef struct intel_limit intel_limit_t; struct intel_limit { - intel_range_t dot, vco, n, m, m1, m2, p, p1; - intel_p2_t p2; + struct { + int min, max; + } dot, vco, n, m, m1, m2, p, p1; + + struct { + int dot_limit; + int p2_slow, p2_fast; + } p2; }; /* returns HPLL frequency in kHz */