On 02/08/18 13:44, Sakari Ailus wrote: > Hi folks, > > This set should make it a bit easier to support finding the right size in > sensor drivers. Two sensor drivers and vivid are converted as an example. > > I've tested the vivid change only but the patches are effectively the same > and trivial. For this series: Acked-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> Regards, Hans > > Sakari Ailus (5): > v4l: common: Add a function to obtain best size from a list > vivid: Use v4l2_find_nearest_size > v4l: common: Remove v4l2_find_nearest_format > ov13858: Use v4l2_find_nearest_size > ov5670: Use v4l2_find_nearest_size > > drivers/media/i2c/ov13858.c | 37 +++------------------------- > drivers/media/i2c/ov5670.c | 34 +++---------------------- > drivers/media/platform/vivid/vivid-vid-cap.c | 6 ++--- > drivers/media/v4l2-core/v4l2-common.c | 34 ++++++++++++++----------- > include/media/v4l2-common.h | 34 ++++++++++++++++++------- > 5 files changed, 53 insertions(+), 92 deletions(-) >