mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
drm: Initialize object type when using DRM_MODE() macro
DRM_MODE() macro doesn't initialize the type of the base drm object. When a copy is made of the mode, the object type is overwritten with zero, and the the object can no longer be found by drm_mode_object_find() due to the type check failing. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
fea7a08acb
commit
22f5d115a2
@ -118,7 +118,8 @@ enum drm_mode_status {
|
|||||||
.hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
|
.hdisplay = (hd), .hsync_start = (hss), .hsync_end = (hse), \
|
||||||
.htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \
|
.htotal = (ht), .hskew = (hsk), .vdisplay = (vd), \
|
||||||
.vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \
|
.vsync_start = (vss), .vsync_end = (vse), .vtotal = (vt), \
|
||||||
.vscan = (vs), .flags = (f), .vrefresh = 0
|
.vscan = (vs), .flags = (f), .vrefresh = 0, \
|
||||||
|
.base.type = DRM_MODE_OBJECT_MODE
|
||||||
|
|
||||||
#define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */
|
#define CRTC_INTERLACE_HALVE_V 0x1 /* halve V values for interlacing */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user