Skip to content

Commit 2b8677e

Browse files
Niklas Söderlundmchehab
authored andcommitted
media: i2c: adv748x: afe: fix sparse warning
This fixes the following sparse warning: drivers/media/i2c/adv748x/adv748x-afe.c:294:34: expected unsigned int [usertype] *signal drivers/media/i2c/adv748x/adv748x-afe.c:294:34: got int *<noident> drivers/media/i2c/adv748x/adv748x-afe.c:294:34: warning: incorrect type in argument 2 (different signedness) Signed-off-by: Niklas Söderlund <[email protected]> Reviewed-by: Kieran Bingham <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 1401b57 commit 2b8677e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/media/i2c/adv748x/adv748x-afe.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ static int adv748x_afe_s_stream(struct v4l2_subdev *sd, int enable)
275275
{
276276
struct adv748x_afe *afe = adv748x_sd_to_afe(sd);
277277
struct adv748x_state *state = adv748x_afe_to_state(afe);
278-
int ret, signal = V4L2_IN_ST_NO_SIGNAL;
278+
u32 signal = V4L2_IN_ST_NO_SIGNAL;
279+
int ret;
279280

280281
mutex_lock(&state->mutex);
281282

0 commit comments

Comments
 (0)