Re: [PATCH v6 10/25] rcar-vin: read subdevice format for crop only when needed

2017-09-25 Thread Hans Verkuil
On 23/08/17 01:26, Niklas Söderlund wrote: > Instead of caching the subdevice format each time the video device > format is set read it directly when its needed. As it turns out the its -> it's > format is only needed when figuring out the max rectangle for cropping. > > This simplify the code a

[PATCH v6 10/25] rcar-vin: read subdevice format for crop only when needed

2017-08-22 Thread Niklas Söderlund
Instead of caching the subdevice format each time the video device format is set read it directly when its needed. As it turns out the format is only needed when figuring out the max rectangle for cropping. This simplify the code and makes it clearer what the source format is used for. Signed-off