From: Dan Carpenter Date: Wed, 9 Jan 2013 07:12:14 +0000 (+0300) Subject: staging: sb105x: clean up interface type test X-Git-Tag: v3.9-rc1~127^2~451 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c803dd48f0539cb6adcbbcf41c758502e1e102cb;p=pandora-kernel.git staging: sb105x: clean up interface type test IIR_RS232 is zero so "if (IIR_RS232 == (b_ret & IIR_RS232))" is always true so RS232 was always chosen by default. The test should be "if (0 == (b_ret & 0x30)) { ". The other tests should also be in that format. This does change how the code works... If 0x30 is set then it now defaults to RS232 instead of RS485. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed