media: vim2m: ensure that width is multiple of two
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 26 Feb 2019 17:31:01 +0000 (12:31 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 1 Mar 2019 16:04:26 +0000 (11:04 -0500)
commit77e05ef7d464b319577b072aa6728200d0cdf787
tree177899c8cdcb78729a6264677703ed0080da69e4
parentde5c46ad483c13aebe36ac57d857a0d478b099bc
media: vim2m: ensure that width is multiple of two

The copy logic assumes that the data width is multiple of two,
as this is needed in order to support YUYV.

There's no reason to force it to be 8-pixel aligned, as 2-pixel
alignment is enough.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vim2m.c