linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media/i2c: Use 'unsigned int' instead of just 'unsigned'
@ 2022-08-24 13:21 Jilin Yuan
  0 siblings, 0 replies; only message in thread
From: Jilin Yuan @ 2022-08-24 13:21 UTC (permalink / raw)
  To: matrandg, mchehab; +Cc: linux-media, linux-kernel, Jilin Yuan

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-24 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-24 13:21 [PATCH] media/i2c: Use 'unsigned int' instead of just 'unsigned' Jilin Yuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).