drm/i915: invert the log inside intel_prepare_ddi
Do an early return in case we don't have DDI instead of having the whole function inside an "if" statement. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
affa935440
commit
0d536cb4e9
@ -115,16 +115,17 @@ void intel_prepare_ddi(struct drm_device *dev)
|
|||||||
{
|
{
|
||||||
int port;
|
int port;
|
||||||
|
|
||||||
if (HAS_DDI(dev)) {
|
if (!HAS_DDI(dev))
|
||||||
for (port = PORT_A; port < PORT_E; port++)
|
return;
|
||||||
intel_prepare_ddi_buffers(dev, port, false);
|
|
||||||
|
|
||||||
/* DDI E is the suggested one to work in FDI mode, so program is as such by
|
for (port = PORT_A; port < PORT_E; port++)
|
||||||
* default. It will have to be re-programmed in case a digital DP output
|
intel_prepare_ddi_buffers(dev, port, false);
|
||||||
* will be detected on it
|
|
||||||
*/
|
/* DDI E is the suggested one to work in FDI mode, so program is as such
|
||||||
intel_prepare_ddi_buffers(dev, PORT_E, true);
|
* by default. It will have to be re-programmed in case a digital DP
|
||||||
}
|
* output will be detected on it
|
||||||
|
*/
|
||||||
|
intel_prepare_ddi_buffers(dev, PORT_E, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const long hsw_ddi_buf_ctl_values[] = {
|
static const long hsw_ddi_buf_ctl_values[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user