[media] v4l2-tpg: Init hv_enc field with a valid value
authorRicardo Ribalda <ricardo.ribalda@gmail.com>
Tue, 15 Nov 2016 12:06:24 +0000 (10:06 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 29 Nov 2016 14:12:13 +0000 (12:12 -0200)
commit94868d612fd917487a6c9a4b08b578031db3e717
tree86e29349ab89dd59896cf840e7f1b7c3fcccf858
parentf51e80804f084de269954d875c0892b081b7df3c
[media] v4l2-tpg: Init hv_enc field with a valid value

Zero is not a valid value for hsv_enc. Set the field to a valid
initial value.

This is not a problem for vivid, because it sets the field to 180 via
tpg_s_hsv_enc() on the control initialization, but it might be a source
of errors for other drivers that use this code.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/common/v4l2-tpg/v4l2-tpg-core.c