diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2013-02-03 06:36:42 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-06-17 08:28:16 -0400 |
commit | cc9231f88edec9e95ce579484e1c862b6d810854 (patch) | |
tree | 7418bda3b52975208c592d97a867fafd2ca82d57 /drivers/media/radio/radio-tea5764.c | |
parent | 827c7cf5135e4ca5b0e7de1ed2ae8c1a362b923c (diff) |
[media] radio-tea5764: add device_caps support
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: Fabio Belavenuto <belavenuto@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-tea5764.c')
-rw-r--r-- | drivers/media/radio/radio-tea5764.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-tea5764.c b/drivers/media/radio/radio-tea5764.c index 5a609903d4c5..077d9063cd4f 100644 --- a/drivers/media/radio/radio-tea5764.c +++ b/drivers/media/radio/radio-tea5764.c | |||
@@ -294,7 +294,8 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
294 | strlcpy(v->card, dev->name, sizeof(v->card)); | 294 | strlcpy(v->card, dev->name, sizeof(v->card)); |
295 | snprintf(v->bus_info, sizeof(v->bus_info), | 295 | snprintf(v->bus_info, sizeof(v->bus_info), |
296 | "I2C:%s", dev_name(&dev->dev)); | 296 | "I2C:%s", dev_name(&dev->dev)); |
297 | v->capabilities = V4L2_CAP_TUNER | V4L2_CAP_RADIO; | 297 | v->device_caps = V4L2_CAP_TUNER | V4L2_CAP_RADIO; |
298 | v->capabilities = v->device_caps | V4L2_CAP_DEVICE_CAPS; | ||
298 | return 0; | 299 | return 0; |
299 | } | 300 | } |
300 | 301 | ||