[media] smiapp: Read frame format earlier
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 7 Sep 2016 10:37:47 +0000 (07:37 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 21 Oct 2016 17:04:28 +0000 (15:04 -0200)
commit1344bf74c93b87fdc5c8d4f1612470b4c3c2906f
tree93b10caac74b209db64c8cc81e9706879a560361
parent3ecb86641b20c98f01df31ee0e22d36cc28660aa
[media] smiapp: Read frame format earlier

The information gathered during frame format reading will be required
earlier in the initialisation when it was available. Also return an error
if frame format cannot be obtained.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-core.c