Skip to content

Commit f8b0bca

Browse files
Jonathan CorbetMauro Carvalho Chehab
authored andcommitted
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>
1 parent f58d785 commit f8b0bca

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/media/video/videobuf-vmalloc.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ static struct videobuf_qtype_ops qops = {
392392

393393
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
394394
const struct videobuf_queue_ops *ops,
395-
void *dev,
395+
struct device *dev,
396396
spinlock_t *irqlock,
397397
enum v4l2_buf_type type,
398398
enum v4l2_field field,

‎include/media/videobuf-vmalloc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct videobuf_vmalloc_memory
3131

3232
void videobuf_queue_vmalloc_init(struct videobuf_queue* q,
3333
const struct videobuf_queue_ops *ops,
34-
void *dev,
34+
struct device *dev,
3535
spinlock_t *irqlock,
3636
enum v4l2_buf_type type,
3737
enum v4l2_field field,

0 commit comments

Comments
 (0)