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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Nov 2018 06:32:46 +0000 (07:32 +0100)
commitb29137a4c89bc8ca3c9ea2e2ded7077858b0715c
tree6e95222e7ad29fc021ebf5694934ca96a405c1c5
parentd409f43d89aa0bbe92bdb2ee0b04816ff31d7b54
media: tvp5150: fix width alignment during set_selection()

[ Upstream commit bd24db04101f45a9c1d874fe21b0c7eab7bcadec ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/i2c/tvp5150.c