media: coda: add coda_slice_mode() function
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 18 Jun 2019 16:45:34 +0000 (12:45 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 18:47:39 +0000 (14:47 -0400)
commit0414b4756820e1ec908f95953cea959d26b0063b
tree6262ef3adefc77ee3fe1e5f182216b19146dc10d
parentcdc841b5ac05fa9fcfe1be5d55bb57c0d4749a49
media: coda: add coda_slice_mode() function

Changing slice mode dynamically while encoding will require to calculate
the register value again, so split it out into a separate function.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/coda/coda-bit.c