|
@@ -1111,6 +1111,7 @@ static int mt9p031_probe(struct i2c_client *client,
|
|
|
v4l2_i2c_subdev_init(&mt9p031->subdev, client, &mt9p031_subdev_ops);
|
|
|
mt9p031->subdev.internal_ops = &mt9p031_subdev_internal_ops;
|
|
|
|
|
|
+ mt9p031->subdev.entity.function = MEDIA_ENT_F_CAM_SENSOR;
|
|
|
mt9p031->pad.flags = MEDIA_PAD_FL_SOURCE;
|
|
|
ret = media_entity_pads_init(&mt9p031->subdev.entity, 1, &mt9p031->pad);
|
|
|
if (ret < 0)
|