[media] vpx3220, bt819: fix compiler warnings
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 25 Aug 2011 13:52:53 +0000 (10:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 6 Sep 2011 17:46:17 +0000 (14:46 -0300)
Same status/res mixup.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/bt819.c
drivers/media/video/vpx3220.c

index f87204461cb41db609b97549250d80a468aeb4b9..859eabf57978ee44a7c3c38d91b12ebea6ae2b12 100644 (file)
@@ -229,7 +229,7 @@ static int bt819_status(struct v4l2_subdev *sd, u32 *pstatus, v4l2_std_id *pstd)
        if (pstd)
                *pstd = std;
        if (pstatus)
-               *pstatus = status;
+               *pstatus = res;
 
        v4l2_dbg(1, debug, sd, "get status %x\n", status);
        return 0;
index ca372eb911d0d5905ffcfc76481fe9e99f52272b..e5cad6ff64a1d24e89665b4b1168c6dc55e0fd98 100644 (file)
@@ -331,7 +331,7 @@ static int vpx3220_status(struct v4l2_subdev *sd, u32 *pstatus, v4l2_std_id *pst
        if (pstd)
                *pstd = std;
        if (pstatus)
-               *pstatus = status;
+               *pstatus = res;
        return 0;
 }