]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: add ov7251_init_ctrls()
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:04:00 +0000 (01:04 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:53:15 +0000 (09:53 +0200)
commit88d944ee020cb84e3f9482ae1522936e80f43833
tree817e882ec4de15b2dd3fb0575f0e8857f4f84877
parent480b364dbbcdb18dab2645d5ed9e650b9ed219c7
media: i2c: add ov7251_init_ctrls()

V4L2 controls initialisation takes up a sizeable portion of the
driver's .probe() function. To keep things neat, move it to a
dedicated function.

Signed-off-by: Daniel Scally <djrscally@gmail.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/i2c/ov7251.c