lkml.org 
[lkml]   [2022]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] media/i2c: Use 'unsigned int' instead of just 'unsigned'
Date
Prefer 'unsigned int' to bare use of 'unsigned'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.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
\
 
 \ /
  Last update: 2022-08-24 15:21    [W:0.031 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site