Commit 01bd7499 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

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: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarBenoit Parrot <bparrot@ti.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent be19b49e
...@@ -240,11 +240,11 @@ struct cal_csi2_phy { ...@@ -240,11 +240,11 @@ struct cal_csi2_phy {
unsigned int lsb; unsigned int lsb;
unsigned int msb; unsigned int msb;
} fields[F_MAX_FIELDS]; } fields[F_MAX_FIELDS];
const int num_lanes; const unsigned int num_lanes;
}; };
struct cal_data { struct cal_data {
const int num_csi2_phy; const unsigned int num_csi2_phy;
struct cal_csi2_phy *csi2_phy_core; struct cal_csi2_phy *csi2_phy_core;
const unsigned int flags; const unsigned int flags;
...@@ -388,7 +388,7 @@ struct cal_ctx { ...@@ -388,7 +388,7 @@ struct cal_ctx {
/* Current subdev enumerated format */ /* Current subdev enumerated format */
const struct cal_fmt *active_fmt[ARRAY_SIZE(cal_formats)]; const struct cal_fmt *active_fmt[ARRAY_SIZE(cal_formats)];
int num_active_fmt; unsigned int num_active_fmt;
struct v4l2_fract timeperframe; struct v4l2_fract timeperframe;
unsigned int sequence; unsigned int sequence;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment