aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <[email protected]>2020-07-06 20:35:39 +0200
committerMauro Carvalho Chehab <[email protected]>2020-07-19 08:35:57 +0200
commit01bd7499393217ee409f095f361dddda370f94a3 (patch)
tree391e35a6381306a69ae4331e3681816e32e2fbbb
parentbe19b49e6ed6963ece660d33b4a16ea5b956faae (diff)
media: ti-vpe: cal: Make structure fields unsigned where applicable
Several structure fields declared as int store positive values only. Make them unsigned. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Reviewed-by: Benoit Parrot <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
-rw-r--r--drivers/media/platform/ti-vpe/cal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c
index 72d5a6434d9e..e7e1ad428074 100644
--- a/drivers/media/platform/ti-vpe/cal.c
+++ b/drivers/media/platform/ti-vpe/cal.c
@@ -240,11 +240,11 @@ struct cal_csi2_phy {
unsigned int lsb;
unsigned int msb;
} fields[F_MAX_FIELDS];
- const int num_lanes;
+ const unsigned int num_lanes;
};
struct cal_data {
- const int num_csi2_phy;
+ const unsigned int num_csi2_phy;
struct cal_csi2_phy *csi2_phy_core;
const unsigned int flags;
@@ -388,7 +388,7 @@ struct cal_ctx {
/* Current subdev enumerated format */
const struct cal_fmt *active_fmt[ARRAY_SIZE(cal_formats)];
- int num_active_fmt;
+ unsigned int num_active_fmt;
struct v4l2_fract timeperframe;
unsigned int sequence;