1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>of_get_drm_display_mode</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux DRM Developer's Guide"><link rel="up" href="drm-mode-setting.html#idp1123353068" title="Display Modes Function Reference"><link rel="prev" href="API-drm-display-mode-to-videomode.html" title="drm_display_mode_to_videomode"><link rel="next" href="API-drm-mode-set-name.html" title="drm_mode_set_name"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">of_get_drm_display_mode</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-drm-display-mode-to-videomode.html">Prev</a> </td><th width="60%" align="center">Display Modes Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="API-drm-mode-set-name.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-of-get-drm-display-mode"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>of_get_drm_display_mode — 2 get a drm_display_mode from devicetree 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">int <b class="fsfunc">of_get_drm_display_mode </b>(</code></td><td>struct device_node * <var class="pdparam">np</var>, </td></tr><tr><td> </td><td>struct drm_display_mode * <var class="pdparam">dmode</var>, </td></tr><tr><td> </td><td>int <var class="pdparam">index</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1123478244"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>np</code></em></span></dt><dd><p> 4 device_node with the timing specification 5 </p></dd><dt><span class="term"><em class="parameter"><code>dmode</code></em></span></dt><dd><p> 6 will be set to the return value 7 </p></dd><dt><span class="term"><em class="parameter"><code>index</code></em></span></dt><dd><p> 8 index into the list of display timings in devicetree 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1123481956"></a><h2>Description</h2><p> 10 This function is expensive and should only be used, if only one mode is to be 11 read from DT. To get multiple modes start with of_get_display_timings and 12 work with that instead. 13</p></div><div class="refsect1"><a name="idp1123482740"></a><h2>Returns</h2><p> 14 0 on success, a negative errno code when no of videomode node was found. 15</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-drm-display-mode-to-videomode.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="drm-mode-setting.html#idp1123353068">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-drm-mode-set-name.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">drm_display_mode_to_videomode</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">drm_mode_set_name</span></td></tr></table></div></body></html> 16