]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: update bytesperline and sizeimage calculation
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 14 Apr 2018 11:57:06 +0000 (07:57 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 13:54:17 +0000 (09:54 -0400)
commit104d8ff4fae58bd94b74f51eaafd5bd3be415ce3
tree04542b2e274d41e004c11b805dde4f4f8c09d7f1
parent0e961e29eb7608f8ce00341bd8ef291015664062
media: rcar-vin: update bytesperline and sizeimage calculation

Remove over complicated logic to calculate the value for bytesperline
and sizeimage that was carried over from the soc_camera port. There is
no need to find the max value of bytesperline and sizeimage from
user-space as they are set to 0 before the max_t() operation.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-v4l2.c