gpu: ipu-cpmem: add 8-bit grayscale support to ipu_cpmem_set_image
authorPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 22 Jan 2018 15:06:16 +0000 (16:06 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 16 Feb 2018 13:48:11 +0000 (14:48 +0100)
commit6d36b7fec60e6f74a15ce4781d30b2aecce85dfc
treec9cdd110a24507cda500f260b07b93f518c2ad06
parentac66b8347bbad5913df098e5281fa6e2c7fc796e
gpu: ipu-cpmem: add 8-bit grayscale support to ipu_cpmem_set_image

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

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