V4L/DVB (13417): Fix videobuf_queue_vmalloc_init() prototype
For whatever reason, the device structure pointer to videobuf_queue_vmalloc_init is typed "void *", even though it's passed right through to videobuf_queue_core_init(), which expects a struct device pointer. The other videobuf implementations use struct device *; I think vmalloc should too. Signed-off-by: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f58d785669
commit
f8b0bca1a7
@@ -392,7 +392,7 @@ static struct videobuf_qtype_ops qops = {
|
|||||||
|
|
||||||
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
|
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
|
||||||
const struct videobuf_queue_ops *ops,
|
const struct videobuf_queue_ops *ops,
|
||||||
void *dev,
|
struct device *dev,
|
||||||
spinlock_t *irqlock,
|
spinlock_t *irqlock,
|
||||||
enum v4l2_buf_type type,
|
enum v4l2_buf_type type,
|
||||||
enum v4l2_field field,
|
enum v4l2_field field,
|
||||||
|
@@ -31,7 +31,7 @@ struct videobuf_vmalloc_memory
|
|||||||
|
|
||||||
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
|
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
|
||||||
const struct videobuf_queue_ops *ops,
|
const struct videobuf_queue_ops *ops,
|
||||||
void *dev,
|
struct device *dev,
|
||||||
spinlock_t *irqlock,
|
spinlock_t *irqlock,
|
||||||
enum v4l2_buf_type type,
|
enum v4l2_buf_type type,
|
||||||
enum v4l2_field field,
|
enum v4l2_field field,
|
||||||
|
Reference in New Issue
Block a user