This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / net / irda / qos.c
index d37dd25..b02d2db 100644 (file)
@@ -211,6 +211,17 @@ static int msb_index (__u16 word)
        return index;
 }
 
+static inline __u32 byte_value(__u8 byte, __u32 *array) 
+{
+       int index;
+
+       ASSERT(array != NULL, return -1;);
+
+       index = msb_index(byte);
+
+       return index_value(index, array);
+}
+
 /*
  * Function value_lower_bits (value, array)
  *