[media] tc358743: Setup default mbus_fmt before registering
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Fri, 2 Jun 2017 12:18:13 +0000 (09:18 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 12:30:54 +0000 (09:30 -0300)
commit2da2391c0f200b07bdc4b8984d69112337dc6dc7
treedff118ddd3bf0e67e1ed6ff27e652d77fc174c72
parent3cb0fe6f74e566b1e4df81f518db16cedb268fc5
[media] tc358743: Setup default mbus_fmt before registering

Previously the mbus_fmt_code was set after the device was
registered. If a connected sub-device called tc358743_get_fmt
prior to that point it would get an invalid code back.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/tc358743.c