Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219647
b: refs/heads/master
c: 213fd22
h: refs/heads/master
i:
  219645: 648ec58
  219643: 7276bde
  219639: eddacc8
  219631: 0a767f6
  219615: f0935e0
  219583: b649f8b
  219519: 6812e63
  219391: 59cb30b
  219135: 0eda1b0
v: v3
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 3f8cf92 commit 991ee1a
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d1ae4da731a6e049a675097ebfd9a02b9b50530e
refs/heads/master: 213fd2270450f7b5f98803e58bc25063c249e032
4 changes: 2 additions & 2 deletions trunk/drivers/staging/iio/magnetometer/hmc5843.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,11 @@ static ssize_t show_sampling_frequency(struct device *dev,
struct iio_dev *indio_dev = dev_get_drvdata(dev);
struct i2c_client *client = to_i2c_client(indio_dev->dev.parent);
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
u32 rate;
s32 rate;

rate = i2c_smbus_read_byte_data(client, this_attr->address);
if (rate < 0)
return -EINVAL;
return rate;
rate = (rate & RATE_BITMASK) >> RATE_OFFSET;
return sprintf(buf, "%s\n", regval_to_samp_freq[rate]);
}
Expand Down

0 comments on commit 991ee1a

Please sign in to comment.