[PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite
Stefan Monnier
monnier at iro.umontreal.ca
Tue Mar 7 20:16:59 PST 2017
>> + 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
More information about the linux-arm-kernel
mailing list