[media] smiapp: Clean up smiapp_set_format()
authorSakari Ailus <sakari.ailus@iki.fi>
Fri, 26 Sep 2014 13:12:38 +0000 (10:12 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 15:43:31 +0000 (13:43 -0200)
commite91cbeb29990d762c997ceec353a14fbbd80a0e1
tree5c227a5e782b846f315f4a439a64039e432f0410
parentcd78b6afa7adb3aca9aa189ba5fb8a0adab647a2
[media] smiapp: Clean up smiapp_set_format()

smiapp_set_format() has accumulated a fair amount of changes without a
needed refactoring, do the cleanup now. There's also an unlocked version of
v4l2_ctrl_range_changed(), using that fixes a small serialisation issue with
the user space interface.

__v4l2_ctrl_modify_range() is used instead of v4l2_ctrl_modify_range() in
smiapp_set_format_source() since the mutex is now held during the function
call.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c