]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: Add ov7251_detect_chip()
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:03:55 +0000 (01:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:50:56 +0000 (09:50 +0200)
commitbfb4a1c114d9d2de1e5799706e3064966ae9d880
tree9ba5fd7c6d0887642c80a3e4f84ef3e35033a221
parent6619dacc2bc2088582f669fa94a931365bcb4b91
media: i2c: Add ov7251_detect_chip()

.probe() is quite busy for this driver; make it cleaner by moving the
chip verification 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