From: Bruno Randolf Date: Thu, 25 Sep 2008 14:45:10 +0000 (+0200) Subject: [MIPS] au1000: Make sure GPIO value is zero or one X-Git-Tag: v2.6.27-rc8~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19506fc51852e859bb08ab5abbdb8fd02b7392f2;p=pandora-kernel.git [MIPS] au1000: Make sure GPIO value is zero or one David Brownell wrote: > The problem is that "value" is zero-or-nonzero. > This code wrongly assumes it's zero-or-one. > Possible fix: "((!!value) << gpio)". Signed-off-by: Bruno Randolf Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed