]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: max9286: Use the subdev active state
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>
Mon, 17 Jun 2024 16:11:33 +0000 (18:11 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 19 Jun 2024 16:43:06 +0000 (19:43 +0300)
commit33fb59ca95bedcacf8ec19b6a63102883bcc4ad5
treedd378396ab9215209959a02a88ed79953684797a
parentb0023db63c467442bc7dec8e3a299eb10ae97dec
media: max9286: Use the subdev active state

Use the subdev active state in the max9286 driver to store the
image format.

Replace the .open() function call with the .init_state() one and
simplify the set/get_pad_fmt() operations.

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