diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-11-25 10:00:30 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:42:13 -0500 |
commit | 8ca5a639f4f3eb8958a7e270fcff7516374637a5 (patch) | |
tree | c4d79ad0d56913cfedff5c9018d2f32b2f7cc2a1 /drivers/media/video/uvc/uvc_v4l2.c | |
parent | 4057ac6ca9a77c4275b34b5925ab5c99557913b1 (diff) |
V4L/DVB (13506): uvcvideo: Factorize common field in uvc_entity structure
The bNrInPins and baSourceID fields are common among all entities (some
of use bSourceID but this is conceptually the same). Move those two
fields out of entity type-specific unions into the uvc_entity structure
top level.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 9e1f2c208ed8..23239a4adefe 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -625,8 +625,8 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
625 | break; | 625 | break; |
626 | } | 626 | } |
627 | pin = iterm->id; | 627 | pin = iterm->id; |
628 | } else if (pin < selector->selector.bNrInPins) { | 628 | } else if (pin < selector->bNrInPins) { |
629 | pin = selector->selector.baSourceID[index]; | 629 | pin = selector->baSourceID[index]; |
630 | list_for_each_entry(iterm, &chain->entities, chain) { | 630 | list_for_each_entry(iterm, &chain->entities, chain) { |
631 | if (!UVC_ENTITY_IS_ITERM(iterm)) | 631 | if (!UVC_ENTITY_IS_ITERM(iterm)) |
632 | continue; | 632 | continue; |
@@ -680,7 +680,7 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
680 | break; | 680 | break; |
681 | } | 681 | } |
682 | 682 | ||
683 | if (input == 0 || input > chain->selector->selector.bNrInPins) | 683 | if (input == 0 || input > chain->selector->bNrInPins) |
684 | return -EINVAL; | 684 | return -EINVAL; |
685 | 685 | ||
686 | return uvc_query_ctrl(chain->dev, UVC_SET_CUR, | 686 | return uvc_query_ctrl(chain->dev, UVC_SET_CUR, |