OSDN Git Service

media: ov2640: set default window and format code at probe time
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 9 Dec 2018 05:20:31 +0000 (00:20 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 16 Jan 2019 17:44:29 +0000 (12:44 -0500)
commitb0a7d0e1c09b70a07f3251af7d4e538f310245f4
treeb9a439ec9f15bdf114b9ff1e4955ee70a36091b7
parent47ee7bde31fa035fbe92a55ca8782a4eafefb0b6
media: ov2640: set default window and format code at probe time

Set default window and format code at probe time instead of always checking
if they have not been set yet when VIDIOC_SUBDEV_G_FMT ioctl is called.

This change simplifies the next patch (make VIDIOC_SUBDEV_G_FMT ioctl work
with V4L2_SUBDEV_FORMAT_TRY).

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov2640.c