media: tvp5150: fix width alignment during set_selection()
authorMarco Felsch <m.felsch@pengutronix.de>
Thu, 28 Jun 2018 16:20:33 +0000 (12:20 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 17 Sep 2018 17:20:25 +0000 (13:20 -0400)
commitbd24db04101f45a9c1d874fe21b0c7eab7bcadec
tree5fe4247a7d708da93f7d27669dfb2c37a8105029
parent65e83fb00b2df3eadc23d71aacf626af3700f337
media: tvp5150: fix width alignment during set_selection()

The driver ignored the width alignment which exists due to the UYVY
colorspace format. Fix the width alignment and make use of the the
provided v4l2 helper function to set the width, height and all
alignments in one.

Fixes: 963ddc63e20d ("[media] media: tvp5150: Add cropping support")

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/tvp5150.c