]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: Provide ov7251_check_hwcfg()
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:03:51 +0000 (01:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:39:20 +0000 (09:39 +0200)
commitac71a94c581d6b287ead4d9e44ad0dd6972d7be1
tree3c280f23c3b28c34b2a04d5c566e853a36118f18
parent4d75b47f8880fc7c56f1f78cf34cb6fd3bf2b63d
media: i2c: Provide ov7251_check_hwcfg()

Move the endpoint checking from .probe() to a dedicated function,
and additionally check that the firmware provided link frequencies
are a match for those supported by the driver. Store the index to the
matching link frequency so it can be easily identified later.

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