OSDN Git Service

drm/i915: Move {pin, long}_mask initialization to caller from intel_get_hpd_pins()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 28 Aug 2015 18:26:27 +0000 (21:26 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 2 Sep 2015 14:51:29 +0000 (16:51 +0200)
commit42db67d664af417e946211c7f1f4178c782a582a
treea5848142522aa37c5b4444e235d8ea3f75bfaead
parent195baa0673345c70f04d19e9e18470c9cbf88bcf
drm/i915: Move {pin, long}_mask initialization to caller from intel_get_hpd_pins()

Move the 0 initialization of pin_mask and long_mask from
intel_get_hpd_pins() into each caller. This we we can call
intel_get_hpd_pins() multiple times to accumulate more pins from several
sources.

v2: Add a comment explaining the dangers of intel_get_hpd_pins() (Paulo)

Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c