• Jiri Slaby's avatar
    ipw2200, fix ipw io functions · 1788bcd1
    Jiri Slaby authored
    - 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's avatarJiri Slaby <jirislaby@gmail.com>
    Acked-by: default avatarZhu Yi <yi.zhu@intel.com>
    Cc: James Ketrenos <jketreno@linux.intel.com>
    Cc: Reinette Chatre <reinette.chatre@intel.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    1788bcd1
ipw2200.c 323 KB