summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2016-09-01 08:47:06 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-22 10:15:16 -0300
commit654fa103920d92f01dac6ae2290ed9261b2b7866 (patch)
tree58b0ccbdd78036adfcb6707743f67d21b980aad5 /drivers/media
parentbae4500399c4243d6ce8933817ca7c7005886727 (diff)
downloadop-kernel-dev-654fa103920d92f01dac6ae2290ed9261b2b7866.zip
op-kernel-dev-654fa103920d92f01dac6ae2290ed9261b2b7866.tar.gz
[media] s5k6a3: Add missing entity function initialization
Suppresses warning like: s5p-fimc-md camera: Entity type for entity S5K6A3 13-0010 was not initialized! Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/i2c/s5k6a3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/s5k6a3.c b/drivers/media/i2c/s5k6a3.c
index b1ecb44..7699640 100644
--- a/drivers/media/i2c/s5k6a3.c
+++ b/drivers/media/i2c/s5k6a3.c
@@ -331,6 +331,7 @@ static int s5k6a3_probe(struct i2c_client *client,
sensor->format.width = S5K6A3_DEFAULT_WIDTH;
sensor->format.height = S5K6A3_DEFAULT_HEIGHT;
+ sd->entity.function = MEDIA_ENT_F_CAM_SENSOR;
sensor->pad.flags = MEDIA_PAD_FL_SOURCE;
ret = media_entity_pads_init(&sd->entity, 1, &sensor->pad);
if (ret < 0)
OpenPOWER on IntegriCloud