lkml.org 
[lkml]   [2017]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite
Date
>> +       if (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC)
>> + val = 1;
>> + else
>> + val = 0;

Isn't this better written as

val = (encoder->encoder_type == DRM_MODE_ENCODER_TVDAC);


-- Stefan

\
 
 \ /
  Last update: 2017-03-08 05:59    [W:0.088 / U:1.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site