summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab2015-05-08 03:12:35 +0200
committerMauro Carvalho Chehab2016-01-11 15:18:50 +0100
commit26614b9bf8b534406835ea66732c12e6fd7b50fd (patch)
tree2b7eab5618688873d7e1892cc5e9ec4e29fda801
parent[media] s5c73m3: fix subdev type (diff)
downloadkernel-qcow2-linux-26614b9bf8b534406835ea66732c12e6fd7b50fd.tar.gz
kernel-qcow2-linux-26614b9bf8b534406835ea66732c12e6fd7b50fd.tar.xz
kernel-qcow2-linux-26614b9bf8b534406835ea66732c12e6fd7b50fd.zip
[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: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r--drivers/media/i2c/s5k5baf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/s5k5baf.c b/drivers/media/i2c/s5k5baf.c
index d3bff30bcb6f..3e929858d5be 100644
--- a/drivers/media/i2c/s5k5baf.c
+++ b/drivers/media/i2c/s5k5baf.c
@@ -1919,7 +1919,7 @@ static int s5k5baf_configure_subdevs(struct s5k5baf *state,
state->pads[PAD_CIS].flags = MEDIA_PAD_FL_SINK;
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);
if (!ret)