media: imx274: remove non-indexed pointers from mode_table
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 24 Apr 2018 08:24:11 +0000 (04:24 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commit8ed8bba70b4355b1ba029b151ade84475dd12991
tree5cbc9e6a3b66709a6c2795804b85c06cb157b3d2
parent4eb7846d3ead1c2f461811e41e63462016e19ae7
media: imx274: remove non-indexed pointers from mode_table

mode_table[] has 3 members that are accessed based on their index, which
makes worth using an array.

The other members are always accessed with a constant index. This added
indirection gives no improvement and only makes code more verbose.

Remove these pointers from the array and access them directly.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/imx274.c