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. 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(-) -- 2.7.4