[media] vb2: replace 'write' by 'dma_dir'
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 18 Nov 2014 12:50:58 +0000 (09:50 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 10:50:28 +0000 (08:50 -0200)
commitcd474037c4a9a9c15cab46ff26ceeed1bbda6abb
tree17ce0741bc7879d60ca83c116afdf73254cb35e4
parentcf227429c74778cc9f8caf734d1f161f8f021915
[media] vb2: replace 'write' by 'dma_dir'

The 'write' argument is very ambiguous. I first assumed that if it is 1,
then we're doing video output but instead it meant the reverse.

Since it is used to setup the dma_dir value anyway it is now replaced by
the correct dma_dir value which is unambiguous.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c
drivers/media/v4l2-core/videobuf2-dma-contig.c
drivers/media/v4l2-core/videobuf2-dma-sg.c
drivers/media/v4l2-core/videobuf2-vmalloc.c
include/media/videobuf2-core.h