diff options
Diffstat (limited to 'linux/drivers/media/common/saa7146.h')
-rw-r--r-- | linux/drivers/media/common/saa7146.h | 6 |
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; |