Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite

Stefan Monnier
2017-03-08T04:16:59Z

>> + 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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org