diff options
author | Todor Tomov <todor.tomov@linaro.org> | 2017-07-05 10:44:47 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-19 21:50:42 +0200 |
commit | f7b51859e830398a6b1faaca171156c8b18848a8 (patch) | |
tree | 32af7e5eeeb693e22c22e350b54b21dd1bf00b27 /drivers/media/i2c/ov5645.c | |
parent | media: omap3isp: Ignore endpoints with invalid configuration (diff) | |
download | linux-f7b51859e830398a6b1faaca171156c8b18848a8.tar.xz linux-f7b51859e830398a6b1faaca171156c8b18848a8.zip |
media: ov5645: Set media entity function
Set media entity function to MEDIA_ENT_F_CAM_SENSOR.
Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/i2c/ov5645.c')
-rw-r--r-- | drivers/media/i2c/ov5645.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c index d1e844f7f03f..bb3dd0d057dd 100644 --- a/drivers/media/i2c/ov5645.c +++ b/drivers/media/i2c/ov5645.c @@ -1229,6 +1229,7 @@ static int ov5645_probe(struct i2c_client *client, ov5645->sd.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE; ov5645->pad.flags = MEDIA_PAD_FL_SOURCE; ov5645->sd.dev = &client->dev; + ov5645->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR; ret = media_entity_pads_init(&ov5645->sd.entity, 1, &ov5645->pad); if (ret < 0) { |