[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <jwvmvcwflnm.fsf-monnier+gmane.comp.hardware.netbook.arm.sunxi@gnu.org>
Date: Tue, 07 Mar 2017 23:16:59 -0500
From: Stefan Monnier <monnier@....umontreal.ca>
To: linux-kernel@...r.kernel.org
Cc: linux-sunxi@...glegroups.com, devicetree@...r.kernel.org,
linux-clk@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 10/15] drm/sun4i: tcon: Switch mux on only for composite
>> + 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
Powered by blists - more mailing lists