gpu: ipu-cpmem: add 16-bit grayscale support to ipu_cpmem_set_image
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 25 Jan 2018 09:37:52 +0000 (10:37 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 19 Feb 2018 14:13:00 +0000 (15:13 +0100)
commit58a22fc44539ad7fd4c07c9fcc156cad1e3340ea
tree52b6341f4d09cd0c84784031df799bf54ad179ef
parent3addaba8141bc6a4f649a48f46e552af32922147
gpu: ipu-cpmem: add 16-bit grayscale support to ipu_cpmem_set_image

Add the missing offset calculation for 16-bit grayscale images. Since
the IPU only supports capturing greyscale in raw passthrough mode, it
is the same as 16-bit bayer formats.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-cpmem.c