diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2018-06-11 07:35:35 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-04 07:26:17 -0400 |
commit | 0b4c9553b135a511f3c5c565ea2b48e801a5f81f (patch) | |
tree | 8055783bcdfba300550532a75a4df017bf026524 /drivers/media/i2c | |
parent | 4317322d5a10467e75cfb5b12e13e5e6f3261b25 (diff) |
media: imx274: actually use IMX274_DEFAULT_MODE
IMX274_DEFAULT_MODE is defined but not used. Start using it, so the
default can be more easily changed without digging into the code.
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>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/imx274.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/imx274.c b/drivers/media/i2c/imx274.c index f075715ffced..ceeec97cd330 100644 --- a/drivers/media/i2c/imx274.c +++ b/drivers/media/i2c/imx274.c @@ -1621,7 +1621,7 @@ static int imx274_probe(struct i2c_client *client, mutex_init(&imx274->lock); /* initialize format */ - imx274->mode = &imx274_formats[IMX274_MODE_3840X2160]; + imx274->mode = &imx274_formats[IMX274_DEFAULT_MODE]; imx274->format.width = imx274->mode->size.width; imx274->format.height = imx274->mode->size.height; imx274->format.field = V4L2_FIELD_NONE; |