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)
commit1757b44eb6bb298221f0dd8c8fa517ad6e19c72d
tree232c58bfac181b159e32d86f78acbda2bb2a752c
parentcc125aaa5a78cd88bf6728e5e02450f0ccfadb94
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