summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-06-28 12:04:12 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-06-28 12:04:12 -0300
commitf240359569256bde592be1b5a647a301a1b40a6d (patch)
treec620b88f0892d4e31128febcb50164cb14bc820c /v4l/compat.h
parentf340aeab2702516684909a5030646ee8a65cd78b (diff)
downloadmediapointer-dvb-s2-f240359569256bde592be1b5a647a301a1b40a6d.tar.gz
mediapointer-dvb-s2-f240359569256bde592be1b5a647a301a1b40a6d.tar.bz2
Fix compat with older kernels
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index b49572b4e..69a86bb72 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -541,6 +541,10 @@ do { \
le32_to_cpu(get_unaligned((u32 *)(a)))
#define put_unaligned_le32(r, a) \
put_unaligned(cpu_to_le32(r), ((u32 *)(a)))
+#define get_unaligned_le64(a) \
+ le64_to_cpu(get_unaligned((u64 *)(a)))
+#define put_unaligned_le64(r, a) \
+ put_unaligned(cpu_to_le64(r), ((u64 *)(a)))
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
#ifdef CONFIG_PROC_FS