[PATCH] media/i2c: Use 'unsigned int' instead of just 'unsigned'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prefer 'unsigned int' to bare use of 'unsigned'.

Signed-off-by: Jilin Yuan <yuanjilin@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux