OSDN Git Service

media: imx274: remove unused data from struct imx274_frmfmt
authorLuca Ceresoli <luca@lucaceresoli.net>
Tue, 24 Apr 2018 08:24:09 +0000 (04:24 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 17 May 2018 10:22:08 +0000 (06:22 -0400)
commitf067ddad003b67be8acb7fd739172dcfb4817a2a
tree4baaf5d6866440fdd09ed327ee9a0e0d544f5c99
parentcf90870454990c54a754c5b2e9ca2e4277ab9b2d
media: imx274: remove unused data from struct imx274_frmfmt

struct imx274_frmfmt is instantiated only in the imx274_formats[]
array, where imx274_formats[N].mode always equals N (via enum
imx274_mode).  So .mode carries no information, and unsurprisingly it
is never used.

mbus_code is never used because the 12 bit modes are not implemented.

The colorspace member is also never used, which is normal since the
imx274 sensor can output only one colorspace.

Let's get rid of all of them.

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