media: i2c: adv748x: Store the pixel rate ctrl on CSI objects
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Thu, 3 Aug 2017 13:50:23 +0000 (09:50 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:03:00 +0000 (10:03 -0500)
commitb0fe777884f5cebc46427f63bc9df1a78bfab1a1
tree52212206c1e988c57f8f10399934a8dab69c4aff
parent7df66d778317353c94c3a2832cd26e320ca28b7d
media: i2c: adv748x: Store the pixel rate ctrl on CSI objects

The current implementation has to search the list of controls for the
pixel rate control, each time it is set.  This can be optimised easily
by storing the ctrl pointer in the CSI/TX object, and referencing that
directly.

While at it, fix up a missing blank line also highlighted in review
comments.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv748x/adv748x-afe.c
drivers/media/i2c/adv748x/adv748x-csi2.c
drivers/media/i2c/adv748x/adv748x.h