Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26614b9b authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] s5k5baf: fix subdev type



The driver creates two subdevs, one for the image sensor pixel array
(and the related readout logic) and one for an ISP.

The first subdev already uses the MEDIA_ENT_T_V4L2_SUBDEV_SENSOR type,
but the second subdev isn't a sensor pixel array.

So, rename the second subdev as MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent cb716165
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1919,7 +1919,7 @@ static int s5k5baf_configure_subdevs(struct s5k5baf *state,


	state->pads[PAD_CIS].flags = MEDIA_PAD_FL_SINK;
	state->pads[PAD_CIS].flags = MEDIA_PAD_FL_SINK;
	state->pads[PAD_OUT].flags = MEDIA_PAD_FL_SOURCE;
	state->pads[PAD_OUT].flags = MEDIA_PAD_FL_SOURCE;
	sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV;
	sd->entity.type = MEDIA_ENT_T_V4L2_SUBDEV_UNKNOWN;
	ret = media_entity_init(&sd->entity, NUM_ISP_PADS, state->pads);
	ret = media_entity_init(&sd->entity, NUM_ISP_PADS, state->pads);


	if (!ret)
	if (!ret)