Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337587
b: refs/heads/master
c: 0c88d23
h: refs/heads/master
i:
  337585: 577cc1f
  337583: d1a1390
v: v3
  • Loading branch information
Dan Carpenter authored and Jonathan Cameron committed Oct 31, 2012
1 parent 91e47d4 commit 31795ae
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 6b3aa3131a7804640e7589e5629036f660362f0b
refs/heads/master: 0c88d23c66884e6ac2995d4d7f881b41e0cfd27c
7 changes: 4 additions & 3 deletions trunk/drivers/iio/dac/ad5449.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,13 @@ static int ad5449_read(struct iio_dev *indio_dev, unsigned int addr,

ret = spi_sync(st->spi, &msg);
if (ret < 0)
return ret;
goto out_unlock;

*val = be16_to_cpu(st->data[1]);
mutex_unlock(&indio_dev->mlock);

return 0;
out_unlock:
mutex_unlock(&indio_dev->mlock);
return ret;
}

static int ad5449_read_raw(struct iio_dev *indio_dev,
Expand Down

0 comments on commit 31795ae

Please sign in to comment.