]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add REG_WRITE_FOOTER
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 2 Dec 2013 12:23:02 +0000 (14:23 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 4 Dec 2013 11:09:34 +0000 (12:09 +0100)
commit131f0a1c1b03e3cb88cf064b0940b20ebd7f4082
tree67cabdad3a9a47305dd7abaf2abfd6d1eb0b6809
parentf00f6ea494e8b89b7ddbcc1e4591fd2cf298244f
drm/i915: Add REG_WRITE_FOOTER

Add a REG_WRITE_FOOTER macro as a counterpart to the REG_WRITE_HEADER.
The current code has the spin_lock() in the HEADER, but the
spin_unlock() is open coded, which looks rather confusing on the first
glance. A bit of additional symmetry might help.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c