Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285252
b: refs/heads/master
c: bd93b3a
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Mauro Carvalho Chehab committed Nov 24, 2011
1 parent ffc03d0 commit 7c6bca6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: affc9a0d59ac49bd304e2137bd5e4ffdd6fdfa52
refs/heads/master: bd93b3ad275501f50935a420cb26f598093d91a0
8 changes: 5 additions & 3 deletions trunk/drivers/media/radio/tef6862.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,11 @@ static int tef6862_s_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)
i2cmsg[2] = pll & 0xff;

err = i2c_master_send(client, i2cmsg, sizeof(i2cmsg));
if (!err)
state->freq = f->frequency;
return err;
if (err != sizeof(i2cmsg))
return err < 0 ? err : -EIO;

state->freq = f->frequency;
return 0;
}

static int tef6862_g_frequency(struct v4l2_subdev *sd, struct v4l2_frequency *f)
Expand Down

0 comments on commit 7c6bca6

Please sign in to comment.