OSDN Git Service

media: imx274: get rid of mode_index
authorLuca Ceresoli <luca@lucaceresoli.net>
Mon, 11 Jun 2018 11:35:34 +0000 (07:35 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 11:25:47 +0000 (07:25 -0400)
commit4317322d5a10467e75cfb5b12e13e5e6f3261b25
tree63cd2d09ff456398080a23f2cdc00506227960db
parent96a2c731a4e661470d3a0a39d5efc792a22c7bba
media: imx274: get rid of mode_index

After restructuring struct imx274_frmfmt, the mode_index field is
still in use only for two dev_dbg() calls in imx274_s_stream(). Let's
remove it and avoid duplicated information.

Replacing the first usage requires some rather annoying but trivial
pointer math. The other one can be removed entirely since it would
print the same value anyway.

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