]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: max9286: Use frame interval from subdev state
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Mon, 17 Jun 2024 16:11:34 +0000 (18:11 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2024 16:43:07 +0000 (19:43 +0300)
commit65f3594366eb303680eae97b935fa0fc90cb7ccc
tree09304c65d8e1ada59031fbca659147760ca20a1a
parent33fb59ca95bedcacf8ec19b6a63102883bcc4ad5
media: max9286: Use frame interval from subdev state

Use the frame interval stored in the subdev state instead of storing
a copy in the driver private structure.

Initialize the frame interval to the special case 0/0 that in the
max9286 driver represents automatic handling of frame sync.

As the frame sync mode is set at s_stream() time, we can remove it
from max9286_setup().

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/20240617161135.130719-12-jacopo.mondi@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/media/i2c/max9286.c