[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220824132121.57334-1-yuanjilin@cdjrlc.com>
Date: Wed, 24 Aug 2022 21:21:21 +0800
From: Jilin Yuan <yuanjilin@...rlc.com>
To: matrandg@...co.com, mchehab@...nel.org
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Jilin Yuan <yuanjilin@...rlc.com>
Subject: [PATCH] media/i2c: Use 'unsigned int' instead of just 'unsigned'
Prefer 'unsigned int' to bare use of 'unsigned'.
Signed-off-by: Jilin Yuan <yuanjilin@...rlc.com>
---
drivers/media/i2c/tc358743.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/media/i2c/tc358743.c b/drivers/media/i2c/tc358743.c
index e18b8947ad7e..fbffa9d6b5c0 100644
--- a/drivers/media/i2c/tc358743.c
+++ b/drivers/media/i2c/tc358743.c
@@ -292,12 +292,12 @@ static int get_audio_sampling_rate(struct v4l2_subdev *sd)
/* --------------- TIMINGS --------------- */
-static inline unsigned fps(const struct v4l2_bt_timings *t)
+static inline unsigned int fps(const struct v4l2_bt_timings *t)
{
if (!V4L2_DV_BT_FRAME_HEIGHT(t) || !V4L2_DV_BT_FRAME_WIDTH(t))
return 0;
- return DIV_ROUND_CLOSEST((unsigned)t->pixelclock,
+ return DIV_ROUND_CLOSEST((unsigned int)t->pixelclock,
V4L2_DV_BT_FRAME_HEIGHT(t) * V4L2_DV_BT_FRAME_WIDTH(t));
}
@@ -305,7 +305,7 @@ static int tc358743_get_detected_timings(struct v4l2_subdev *sd,
struct v4l2_dv_timings *timings)
{
struct v4l2_bt_timings *bt = &timings->bt;
- unsigned width, height, frame_width, frame_height, frame_interval, fps;
+ unsigned int width, height, frame_width, frame_height, frame_interval, fps;
memset(timings, 0, sizeof(struct v4l2_dv_timings));
--
2.36.1
Powered by blists - more mailing lists