media: ti-vpe: cal: change index and cport to u8
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 14 Jun 2021 11:23:18 +0000 (13:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 12 Jul 2021 10:38:06 +0000 (12:38 +0200)
cal_ctx's index and cport fields are numbers less than 8. In the
following patches we will get a bunch of new fields, all of which are
similar small numbers, so lets change the type to u8.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal.h

index 09ad20faa9e1914ce8ee55184129f43d6da20521..251bb0ba7b3bc3717f1a21dcb720158052dcee23 100644 (file)
@@ -217,8 +217,8 @@ struct cal_ctx {
 
        unsigned int            sequence;
        struct vb2_queue        vb_vidq;
-       unsigned int            index;
-       unsigned int            cport;
+       u8                      index;
+       u8                      cport;
 };
 
 extern unsigned int cal_debug;