drm: Add drm_mode_copy()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 13 Mar 2012 10:35:51 +0000 (12:35 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 09:52:51 +0000 (09:52 +0000)
commitc3c50e8b651887bcefcc13beb3739c00b2379b5c
tree087ae3ec7c437125bee9a40d50a2de79685348ed
parentd63f5e6bf6f2a1573ea39c9937cdf5ab0b3a4b77
drm: Add drm_mode_copy()

Add a helper function to copy a display mode. Use it in
drm_mode_duplicate() and nouveau mode_fixup hooks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/nouveau/nv50_dac.c
drivers/gpu/drm/nouveau/nv50_sor.c
include/drm/drm_crtc.h