diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2016-04-15 08:15:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-08 13:45:07 -0400 |
commit | 36c0f8b32c4bd4f668cedfba6d97afaa84f055fb (patch) | |
tree | fb65309d392241a0ae6733346b38145be971274f /samples | |
parent | 2548fee63d9eb43299dacd0ca30dd9d8f407d795 (diff) |
[media] vb2: replace void *alloc_ctxs by struct device *alloc_devs
Make this a proper typed array. Drop the old allocate context code since
that is no longer used.
Note that the memops functions now get a struct device pointer instead of
the struct device ** that was there initially (actually a void pointer to
a struct containing only a struct device pointer).
This code is now a lot cleaner.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'samples')
-rw-r--r-- | samples/v4l/v4l2-pci-skeleton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/v4l/v4l2-pci-skeleton.c b/samples/v4l/v4l2-pci-skeleton.c index 5f91d76260ff..93b76c3220fd 100644 --- a/samples/v4l/v4l2-pci-skeleton.c +++ b/samples/v4l/v4l2-pci-skeleton.c | |||
@@ -163,7 +163,7 @@ static irqreturn_t skeleton_irq(int irq, void *dev_id) | |||
163 | */ | 163 | */ |
164 | static int queue_setup(struct vb2_queue *vq, | 164 | static int queue_setup(struct vb2_queue *vq, |
165 | unsigned int *nbuffers, unsigned int *nplanes, | 165 | unsigned int *nbuffers, unsigned int *nplanes, |
166 | unsigned int sizes[], void *alloc_ctxs[]) | 166 | unsigned int sizes[], struct device *alloc_devs[]) |
167 | { | 167 | { |
168 | struct skeleton *skel = vb2_get_drv_priv(vq); | 168 | struct skeleton *skel = vb2_get_drv_priv(vq); |
169 | 169 | ||