summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/saa7146.h
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2002-12-19 19:38:06 +0000
committerMichael Hunold <devnull@localhost>2002-12-19 19:38:06 +0000
commit5c7770b64b4ec0e3d1b00b96e32a4cb4647b57f4 (patch)
treeadfd458e238bc3f2ae4d795ddd8be1eba26a9d6f /linux/drivers/media/common/saa7146.h
parente0737ae1cb71b5ee270b434c0cd1c701008c5a33 (diff)
downloadmediapointer-dvb-s2-5c7770b64b4ec0e3d1b00b96e32a4cb4647b57f4.tar.gz
mediapointer-dvb-s2-5c7770b64b4ec0e3d1b00b96e32a4cb4647b57f4.tar.bz2
Necessary fixes to the saa7146_core to allow the driver to
be build statically into the kernel.
Diffstat (limited to 'linux/drivers/media/common/saa7146.h')
-rw-r--r--linux/drivers/media/common/saa7146.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146.h b/linux/drivers/media/common/saa7146.h
index 98fc45a92..67f1c5793 100644
--- a/linux/drivers/media/common/saa7146.h
+++ b/linux/drivers/media/common/saa7146.h
@@ -15,6 +15,7 @@
#include <linux/i2c.h> /* for i2c subsystem */
#include <linux/i2c-id.h>
#include <asm/io.h> /* for accessing devices */
+#include <linux/stringify.h>
#include <linux/videodev2.h>
#include "video-buf.h"
@@ -28,7 +29,10 @@
#define saa7146_write(sxy,adr,dat) writel((dat),(sxy->mem+(adr)))
#define saa7146_read(sxy,adr) readl(sxy->mem+(adr))
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51)
#define BUG_ON(condition) do { if ((condition)!=0) BUG(); } while(0)
+#endif
+
#define BOARD_CAN_DO_VBI(dev) (dev->revision != 0 && 0 != dev->ext->vbi)
extern int debug;
@@ -76,6 +80,8 @@ struct saa7146_extension
int audios;
u32 capabilities;
+ struct list_head item;
+
/* pairs of subvendor and subdevice ids for
supported devices, last entry 0xffff, 0xfff */
struct saa7146_sub_info *devices;