media: ov5640: add support of module orientation
authorHugues Fruchet <hugues.fruchet@st.com>
Mon, 18 Jun 2018 10:29:19 +0000 (06:29 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 28 Jun 2018 12:45:56 +0000 (08:45 -0400)
commitc3f3ba3e6f78ea2159fca284e18840c6b3c1bfb6
tree8f24c3acae493d61f9f81f030c8ce676f5d5955b
parent7e5dd6fd1283bde6cea7e09db6e9635602b5fc21
media: ov5640: add support of module orientation

Add support of module being physically mounted upside down.
In this case, mirror and flip are enabled to fix captured images
orientation.

[Sakari Ailus: Use dev_fwnode() instead of accessing device's of_node]

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c