All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] soc-camera sensor improvements
@ 2015-05-03  9:54 Hans Verkuil
  2015-05-03  9:54 ` [PATCH 1/9] imx074: don't call imx074_find_datafmt() twice Hans Verkuil
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Hans Verkuil @ 2015-05-03  9:54 UTC (permalink / raw)
  To: linux-media; +Cc: g.liakhovetski

From: Hans Verkuil <hans.verkuil@cisco.com>

As per Guennadi's suggestions, improve the code of various soc-camera sensor
drivers to avoid duplicating code.

Note that the mt9t112 issue is something I discovered and that has been there
from before my recent patches that removed the old video ops.

Also note that that is the only driver that Guennadi commented upon ("Now
mt9t112_frame_check() will be called twice in the .s_mbus_fmt() case.") that
I did not change: this driver is more complex than the others and I did not
see an easy way of changing this.

I might tackle that one later as I actually have hardware with this sensor.

Regards,

	Hans

Hans Verkuil (9):
  imx074: don't call imx074_find_datafmt() twice
  mt9m001: avoid calling mt9m001_find_datafmt() twice
  mt9v022: avoid calling mt9v022_find_datafmt() twice
  ov2640: avoid calling ov2640_select_win() twice
  ov5642: avoid calling ov5642_find_datafmt() twice
  ov772x: avoid calling ov772x_select_params() twice
  ov9640: avoid calling ov9640_res_roundup() twice
  ov9740: avoid calling ov9740_res_roundup() twice
  mt9t112: initialize left and top

 drivers/media/i2c/soc_camera/imx074.c  |  7 +++---
 drivers/media/i2c/soc_camera/mt9m001.c |  8 +++----
 drivers/media/i2c/soc_camera/mt9t112.c |  3 ++-
 drivers/media/i2c/soc_camera/mt9v022.c |  8 +++----
 drivers/media/i2c/soc_camera/ov2640.c  | 21 +++++++++--------
 drivers/media/i2c/soc_camera/ov5642.c  |  7 +++---
 drivers/media/i2c/soc_camera/ov772x.c  | 41 +++++++++++-----------------------
 drivers/media/i2c/soc_camera/ov9640.c  | 24 +++-----------------
 drivers/media/i2c/soc_camera/ov9740.c  | 18 +--------------
 9 files changed, 45 insertions(+), 92 deletions(-)

-- 
2.1.4


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2015-05-04 10:20 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-03  9:54 [PATCH 0/9] soc-camera sensor improvements Hans Verkuil
2015-05-03  9:54 ` [PATCH 1/9] imx074: don't call imx074_find_datafmt() twice Hans Verkuil
2015-05-03 17:54   ` Guennadi Liakhovetski
2015-05-04  7:22     ` Hans Verkuil
2015-05-03  9:54 ` [PATCH 2/9] mt9m001: avoid calling mt9m001_find_datafmt() twice Hans Verkuil
2015-05-03 17:56   ` Guennadi Liakhovetski
2015-05-03  9:54 ` [PATCH 3/9] mt9v022: avoid calling mt9v022_find_datafmt() twice Hans Verkuil
2015-05-03 17:57   ` Guennadi Liakhovetski
2015-05-03  9:54 ` [PATCH 4/9] ov2640: avoid calling ov2640_select_win() twice Hans Verkuil
2015-05-03 18:19   ` Guennadi Liakhovetski
2015-05-04  7:25     ` Hans Verkuil
2015-05-03  9:54 ` [PATCH 5/9] ov5642: avoid calling ov5642_find_datafmt() twice Hans Verkuil
2015-05-03 20:24   ` Guennadi Liakhovetski
2015-05-04  7:26     ` Hans Verkuil
2015-05-03  9:54 ` [PATCH 6/9] ov772x: avoid calling ov772x_select_params() twice Hans Verkuil
2015-05-03 20:30   ` Guennadi Liakhovetski
2015-05-03  9:54 ` [PATCH 7/9] ov9640: avoid calling ov9640_res_roundup() twice Hans Verkuil
2015-05-03 20:34   ` Guennadi Liakhovetski
2015-05-03  9:54 ` [PATCH 8/9] ov9740: avoid calling ov9740_res_roundup() twice Hans Verkuil
2015-05-03 20:47   ` Guennadi Liakhovetski
2015-05-04 10:20     ` Hans Verkuil
2015-05-03  9:54 ` [PATCH 9/9] mt9t112: initialize left and top Hans Verkuil
2015-05-03 21:02   ` Guennadi Liakhovetski
2015-05-03 21:09     ` Guennadi Liakhovetski
2015-05-04  7:31     ` Hans Verkuil
2015-05-04  7:40       ` Guennadi Liakhovetski
2015-05-04  7:43         ` Hans Verkuil
2015-05-04  7:54           ` Guennadi Liakhovetski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.