From: Helmut Schaa Date: Thu, 3 Mar 2011 18:44:10 +0000 (+0100) Subject: rt2x00: Use an enum instead of u16 for the rate_mode TX descriptor field X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4df10c8c1353e5db781a9a781cc585698b24f30d;p=linux-beck.git rt2x00: Use an enum instead of u16 for the rate_mode TX descriptor field This makes the code less error-prone. Acked-by: Gertjan van Wingerde Signed-off-by: Helmut Schaa Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/rt2x00/rt2x00queue.h b/drivers/net/wireless/rt2x00/rt2x00queue.h index 7f8528da03e4..0c8b0c699679 100644 --- a/drivers/net/wireless/rt2x00/rt2x00queue.h +++ b/drivers/net/wireless/rt2x00/rt2x00queue.h @@ -323,7 +323,7 @@ struct txentry_desc { } ht; } u; - u16 rate_mode; + enum rate_modulation rate_mode; short retry_limit;