]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: i2c: adv748x: afe: fix sparse warning
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 26 Mar 2018 22:09:51 +0000 (18:09 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 5 Apr 2018 09:30:07 +0000 (05:30 -0400)
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 <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/adv748x/adv748x-afe.c

index 5188178588c9067d60e7a38ac08d8bd8bba08858..61514bae7e5ceb423b60e8a3a62c9a7df59a7fb4 100644 (file)
@@ -275,7 +275,8 @@ static int adv748x_afe_s_stream(struct v4l2_subdev *sd, int enable)
 {
        struct adv748x_afe *afe = adv748x_sd_to_afe(sd);
        struct adv748x_state *state = adv748x_afe_to_state(afe);
-       int ret, signal = V4L2_IN_ST_NO_SIGNAL;
+       u32 signal = V4L2_IN_ST_NO_SIGNAL;
+       int ret;
 
        mutex_lock(&state->mutex);