Skip to content

Commit

Permalink
media: i2c: adv748x: afe: fix sparse warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Niklas Söderlund authored and mchehab committed Apr 5, 2018
1 parent 1401b57 commit 2b8677e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/i2c/adv748x/adv748x-afe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2b8677e

Please sign in to comment.