diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-09 16:23:31 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-05 21:00:16 +0400 |
commit | 1b9e94dc69959e963fe57ede46259f792641af4d (patch) | |
tree | ad4c224da8280c427076aff7d3e20914bf2be3ea /drivers/media/pci/bt8xx/bttv.h | |
parent | 78dea1aed44a6e3e16973e584b00825359d470bd (diff) | |
download | linux-1b9e94dc69959e963fe57ede46259f792641af4d.tar.xz |
[media] bttv: add VIDIOC_DBG_G_CHIP_IDENT
VIDIOC_DBG_G_CHIP_IDENT is a prerequisite for the G/S_REGISTER ioctls.
In addition, add support to call G/S_REGISTER for supporting i2c devices.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttv.h')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/pci/bt8xx/bttv.h b/drivers/media/pci/bt8xx/bttv.h index 79a11240a590..6139ce26dc2c 100644 --- a/drivers/media/pci/bt8xx/bttv.h +++ b/drivers/media/pci/bt8xx/bttv.h @@ -359,6 +359,9 @@ void bttv_gpio_bits(struct bttv_core *core, u32 mask, u32 bits); #define bttv_call_all(btv, o, f, args...) \ v4l2_device_call_all(&btv->c.v4l2_dev, 0, o, f, ##args) +#define bttv_call_all_err(btv, o, f, args...) \ + v4l2_device_call_until_err(&btv->c.v4l2_dev, 0, o, f, ##args) + extern int bttv_I2CRead(struct bttv *btv, unsigned char addr, char *probe_for); extern int bttv_I2CWrite(struct bttv *btv, unsigned char addr, unsigned char b1, unsigned char b2, int both); |