This patchset adds support for changing frame interval and runtime PM for video-i2c driver. This also adds an helper function to v4l2 common internal API that is used to to find a suitable frame interval.
There are a couple of unrelated changes that are included for simplifying driver initialization code and register accesses. Akinobu Mita (5): media: video-i2c: avoid accessing released memory area when removing driver media: video-i2c: use i2c regmap media: v4l2-common: add v4l2_find_closest_fract() media: video-i2c: support changing frame interval media: video-i2c: support runtime PM drivers/media/i2c/video-i2c.c | 276 ++++++++++++++++++++++++++++------ drivers/media/v4l2-core/v4l2-common.c | 26 ++++ include/media/v4l2-common.h | 12 ++ 3 files changed, 267 insertions(+), 47 deletions(-) Cc: Matt Ranostay <matt.ranos...@konsulko.com> Cc: Sakari Ailus <sakari.ai...@linux.intel.com> Cc: Hans Verkuil <hansv...@cisco.com> Cc: Mauro Carvalho Chehab <mche...@kernel.org> -- 2.7.4