summaryrefslogtreecommitdiff
path: root/include/linux/byteorder.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/byteorder.h')
-rw-r--r--include/linux/byteorder.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/byteorder.h b/include/linux/byteorder.h
index 7b04f5bc..c5ab51e9 100644
--- a/include/linux/byteorder.h
+++ b/include/linux/byteorder.h
@@ -72,4 +72,12 @@ static inline void le64_add_cpu(__le64 *var, u64 val)
*var = cpu_to_le64(le64_to_cpu(*var) + val);
}
+static inline void le32_to_cpu_array(u32 *buf, unsigned int words)
+{
+ while (words--) {
+ __le32_to_cpus(buf);
+ buf++;
+ }
+}
+
#endif /* __LINUX_BYTEORDER_H */