Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354190
b: refs/heads/master
c: 06220b8
h: refs/heads/master
v: v3
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Jan 26, 2013
1 parent eb2a570 commit ace2126
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 3f6a0bad61e34c648fd08ff8dcbfdd58148963d2
refs/heads/master: 06220b89f2284f910f925676d757fd3331138dc6
6 changes: 5 additions & 1 deletion trunk/drivers/staging/iio/imu/adis16400_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ static int adis16334_set_freq(struct iio_dev *indio_dev, unsigned int freq)
{
unsigned int t;

t = ilog2(8192 / (freq * 10));
freq *= 10;
if (freq < 8192)
t = ilog2(8192 / freq);
else
t = 0;

if (t > 0x31)
t = 0x31;
Expand Down

0 comments on commit ace2126

Please sign in to comment.