drm/i915: Use clamp_t() when limiting cur_delay
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 Nov 2013 17:57:49 +0000 (19:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 7 Nov 2013 19:04:53 +0000 (20:04 +0100)
commit1272e7b854e768ede5279de57b78a54cb39f5da5
treeda9f24c017c4ba9342581a03509586294df5006a
parent4c7915616a7a09be0c1e5b76c26381df15fe671b
drm/i915: Use clamp_t() when limiting cur_delay

Make the cur_delay limiting code a bit less prone to typo errors
by using clamp_t().

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c