]> git.baikalelectronics.ru Git - kernel.git/commit
media: i2c: Remove per-mode frequencies from ov7251
authorDaniel Scally <djrscally@gmail.com>
Thu, 5 May 2022 23:03:52 +0000 (01:03 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 17 May 2022 07:49:25 +0000 (09:49 +0200)
commitcf718e07a3ae6770a716fa4ab633001ec92f87f4
tree232c58bfac181b159e32d86f78acbda2bb2a752c
parentac71a94c581d6b287ead4d9e44ad0dd6972d7be1
media: i2c: Remove per-mode frequencies from ov7251

Each of the defined modes in the ov7251 driver uses the same link
frequency and pixel rate; just drop those members of the modes and
set the controls to read only during initialisation. Add a new
table defining the supported pixel rates to substitue for the values
hardcoded in the modes.

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