From: Jiri Slaby Date: Thu, 12 Feb 2009 21:29:40 +0000 (+0100) Subject: ipw2200, fix ipw io functions X-Git-Tag: v2.6.30-rc1~662^2~460^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1788bcd155a2cbb7fad6bb30c2ae3786ceee8b4c;p=pandora-kernel.git ipw2200, fix ipw io functions - some of them are defined as follows: #define ipw_write32 expr1; expr2 and are called from loops or ifs without a compound statement, so they are broken. Fix it by putting them into do {} while (0) for writes and ({ }) for reads. - also unify and cleanup them while at it -- convert them from macros to inline functions, so that we get some basic typechecking Signed-off-by: Jiri Slaby Acked-by: Zhu Yi Cc: James Ketrenos Cc: Reinette Chatre Signed-off-by: John W. Linville --- Reading git-diff-tree failed