Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: i2c: max9286: Implement media entity .link_validate() operation

The MAX9286 has sink pads, so it should implement .link_validate(). Do
so.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>

authored by

Laurent Pinchart and committed by
Mauro Carvalho Chehab
1fe6ae4e 1949c01e

+5
+5
drivers/media/i2c/max9286.c
··· 849 849 .open = max9286_open, 850 850 }; 851 851 852 + static const struct media_entity_operations max9286_media_ops = { 853 + .link_validate = v4l2_subdev_link_validate 854 + }; 855 + 852 856 static int max9286_s_ctrl(struct v4l2_ctrl *ctrl) 853 857 { 854 858 switch (ctrl->id) { ··· 902 898 goto err_async; 903 899 904 900 priv->sd.entity.function = MEDIA_ENT_F_VID_IF_BRIDGE; 901 + priv->sd.entity.ops = &max9286_media_ops; 905 902 906 903 priv->pads[MAX9286_SRC_PAD].flags = MEDIA_PAD_FL_SOURCE; 907 904 for (i = 0; i < MAX9286_SRC_PAD; i++)