media: i2c: alvium: remove the fr field of the alvium_dev structure
authorTommaso Merciai <tomm.merciai@gmail.com>
Wed, 20 Dec 2023 12:40:20 +0000 (13:40 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 23 Feb 2024 13:33:31 +0000 (14:33 +0100)
commitd7f686d8c5ca1314962b4d7644bbdd7931b5bf24
tree6bb271ed5ce5506cd0138e7ea806cc86b2002bcc
parentb5c5a02b3d4f783d05276a28f9ab28643ec23e6c
media: i2c: alvium: remove the fr field of the alvium_dev structure

The fr (frame rate) field of the alvium_dev structure is
only used to pass result from alvium_set_frame_interval() to
alvium_set_frame_rate() that writes this info into the hw reg.
Replace it with a function parameter.

Signed-off-by: Tommaso Merciai <tomm.merciai@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/i2c/alvium-csi2.c
drivers/media/i2c/alvium-csi2.h