Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354393
b: refs/heads/master
c: 9a26578
h: refs/heads/master
i:
  354391: b7601fc
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Feb 2, 2013
1 parent 7e52b32 commit 2712c9c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: c62b89c713ebd5e4a67c9b9229591adab8953a3c
refs/heads/master: 9a26578c811e6f4de24d81ef734b17c401e5080f
5 changes: 3 additions & 2 deletions trunk/drivers/staging/iio/gyro/adxrs450_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ static int adxrs450_write_raw(struct iio_dev *indio_dev,
int ret;
switch (mask) {
case IIO_CHAN_INFO_CALIBBIAS:
if (val < -0x400 || val >= 0x400)
return -EINVAL;
ret = adxrs450_spi_write_reg_16(indio_dev,
ADXRS450_DNC1,
val & 0x3FF);
ADXRS450_DNC1, val);
break;
default:
ret = -EINVAL;
Expand Down

0 comments on commit 2712c9c

Please sign in to comment.