]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/gpu/drm/i915/intel_uncore.c
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)
commit0d9653014f081eacdeb82b0a8ad0e0d4ce87e3da
tree67cabdad3a9a47305dd7abaf2abfd6d1eb0b6809
parent54c136d4e525684a3310e3dd76de8ae81d7dbbf7
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