'\" t .\" Title: of_get_drm_display_mode .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "OF_GET_DRM_DISPLAY_M" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" of_get_drm_display_mode \- get a drm_display_mode from devicetree .SH "SYNOPSIS" .HP \w'int\ of_get_drm_display_mode('u .BI "int of_get_drm_display_mode(struct\ device_node\ *\ " "np" ", struct\ drm_display_mode\ *\ " "dmode" ", int\ " "index" ");" .SH "ARGUMENTS" .PP \fInp\fR .RS 4 device_node with the timing specification .RE .PP \fIdmode\fR .RS 4 will be set to the return value .RE .PP \fIindex\fR .RS 4 index into the list of display timings in devicetree .RE .SH "DESCRIPTION" .PP This function is expensive and should only be used, if only one mode is to be read from DT\&. To get multiple modes start with of_get_display_timings and work with that instead\&. .SH "RETURNS" .PP 0 on success, a negative errno code when no of videomode node was found\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br