summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/vsp1/vsp1_sru.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2015-12-05 20:17:10 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-02-19 09:43:46 -0200
commit5aa2eb3c86d4fd167b7c4e41eceb99a8598bcc76 (patch)
treeb334d2e2ea90dd66cce771600d5225fd2de76771 /drivers/media/platform/vsp1/vsp1_sru.c
parent1517b0392369d67250e6b275671be5bdbf64b81e (diff)
downloadtalos-obmc-linux-5aa2eb3c86d4fd167b7c4e41eceb99a8598bcc76.tar.gz
talos-obmc-linux-5aa2eb3c86d4fd167b7c4e41eceb99a8598bcc76.zip
[media] v4l: vsp1: Configure device based on IP version
The IP version number carries enough information to identify the exact device instance features. Drop the related DT properties and use the IP version instead. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/platform/vsp1/vsp1_sru.c')
-rw-r--r--drivers/media/platform/vsp1/vsp1_sru.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/vsp1/vsp1_sru.c b/drivers/media/platform/vsp1/vsp1_sru.c
index 6dcf76a1ca57..cc09efbfb24f 100644
--- a/drivers/media/platform/vsp1/vsp1_sru.c
+++ b/drivers/media/platform/vsp1/vsp1_sru.c
@@ -151,12 +151,12 @@ static int sru_s_stream(struct v4l2_subdev *subdev, int enable)
/* Take the control handler lock to ensure that the CTRL0 value won't be
* changed behind our back by a set control operation.
*/
- if (sru->entity.vsp1->pdata.uapi)
+ if (sru->entity.vsp1->info->uapi)
mutex_lock(sru->ctrls.lock);
ctrl0 |= vsp1_sru_read(sru, VI6_SRU_CTRL0)
& (VI6_SRU_CTRL0_PARAM0_MASK | VI6_SRU_CTRL0_PARAM1_MASK);
vsp1_sru_write(sru, VI6_SRU_CTRL0, ctrl0);
- if (sru->entity.vsp1->pdata.uapi)
+ if (sru->entity.vsp1->info->uapi)
mutex_unlock(sru->ctrls.lock);
vsp1_sru_write(sru, VI6_SRU_CTRL1, VI6_SRU_CTRL1_PARAM5);
OpenPOWER on IntegriCloud