Commit 5ef4614c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mauro Carvalho Chehab

media: staging: atomisp: lm3554: Fix control values

Driver fails to initialize due to insane settings in the
control init array.

Fix this by moving to sanity.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 6aebb3c6
...@@ -562,10 +562,10 @@ static const struct v4l2_ctrl_config lm3554_controls[] = { ...@@ -562,10 +562,10 @@ static const struct v4l2_ctrl_config lm3554_controls[] = {
{ {
.ops = &ctrl_ops, .ops = &ctrl_ops,
.id = V4L2_CID_FLASH_STATUS, .id = V4L2_CID_FLASH_STATUS,
.type = V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Flash Status", .name = "Flash Status",
.min = 0, .min = ATOMISP_FLASH_STATUS_OK,
.max = 100, .max = ATOMISP_FLASH_STATUS_TIMEOUT,
.step = 1, .step = 1,
.def = ATOMISP_FLASH_STATUS_OK, .def = ATOMISP_FLASH_STATUS_OK,
.flags = 0, .flags = 0,
...@@ -574,10 +574,10 @@ static const struct v4l2_ctrl_config lm3554_controls[] = { ...@@ -574,10 +574,10 @@ static const struct v4l2_ctrl_config lm3554_controls[] = {
{ {
.ops = &ctrl_ops, .ops = &ctrl_ops,
.id = V4L2_CID_FLASH_STATUS_REGISTER, .id = V4L2_CID_FLASH_STATUS_REGISTER,
.type = V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_INTEGER,
.name = "Flash Status Register", .name = "Flash Status Register",
.min = 0, .min = 0,
.max = 100, .max = 255,
.step = 1, .step = 1,
.def = 0, .def = 0,
.flags = 0, .flags = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment