mbox series

[v3,0/5] media: i2c: alvium: store frame interval in subdev

Message ID 20231220124023.2801417-1-tomm.merciai@gmail.com (mailing list archive)
Headers show
Series media: i2c: alvium: store frame interval in subdev | expand

Message

Tommaso Merciai Dec. 20, 2023, 12:40 p.m. UTC
Hi All,
The goal of this series as suggested by LPinchart is to remove the following
data from alvium_dev struct:

 - struct v4l2_fract frame_interval;
 - u64 dft_fr;
 - u64 min_fr;
 - u64 max_fr;
 - u64 fr;

And use instead the the newly added storage for frame interval in the subdev state.
Last patch fix req_fr check into alvium_s_frame_interval().

This series is made on top of the media_stage tree[1]:
 - media: i2c: mt9m114: use fsleep() in place of udelay() (02d4e62ae245)
 - [1] https://git.linuxtv.org/media_stage.git/log/

Tommaso Merciai (5):
  media: i2c: alvium: removal of dft_fr, min_fr and max_fr
  media: i2c: alvium: remove the fr field of the alvium_dev structure
  media: i2c: alvium: inline set_frame_interval into s_frame_interval
  media: i2c: alvium: store frame interval in subdev state
  media: i2c: alvium: fix req_fr check into alvium_s_frame_interval()

 drivers/media/i2c/alvium-csi2.c | 99 +++++++++------------------------
 drivers/media/i2c/alvium-csi2.h |  5 --
 2 files changed, 27 insertions(+), 77 deletions(-)