media: v4l2-common: get rid of struct v4l2_discrete_probe
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 22 Sep 2017 13:49:27 +0000 (09:49 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 14:14:57 +0000 (09:14 -0500)
commit0545629e50af60e7afad9d6023a546aed1081a8e
tree89d227585f2e724bc09853c4daad2614d38bc825
parent01154ef5820a756283686247405a599c4ef7dc48
media: v4l2-common: get rid of struct v4l2_discrete_probe

This struct is there just two store two arguments of
v4l2_find_nearest_format(). The other two arguments are passed
as parameter.

IMHO, there isn't much sense on doing that, and that will just
add one more struct to document ;)

So, let's get rid of the struct, passing the parameters directly.

Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/vivid/vivid-vid-cap.c
drivers/media/v4l2-core/v4l2-common.c
include/media/v4l2-common.h