Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304335
b: refs/heads/master
c: fe3f8f8
h: refs/heads/master
i:
  304333: f7bbc74
  304331: deb1532
  304327: b25c3a3
  304319: 2b22070
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Apr 13, 2012
1 parent a65b94a commit 7a42986
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 91ceae374e1ece88c8f575259ee0ad7da28ae8ab
refs/heads/master: fe3f8f87edf99d9d5122f890208538e0afabd8ce
3 changes: 2 additions & 1 deletion trunk/drivers/staging/iio/light/tsl2563.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ static int tsl2563_write_raw(struct iio_dev *indio_dev,
{
struct tsl2563_chip *chip = iio_priv(indio_dev);

if (chan->channel == 0)
if (chan->channel == IIO_MOD_LIGHT_BOTH)
chip->calib0 = calib_from_sysfs(val);
else
chip->calib1 = calib_from_sysfs(val);
Expand Down Expand Up @@ -534,6 +534,7 @@ static const struct iio_chan_spec tsl2563_channels[] = {
{
.type = IIO_LIGHT,
.indexed = 1,
.processed_val = 1,
.channel = 0,
}, {
.type = IIO_INTENSITY,
Expand Down

0 comments on commit 7a42986

Please sign in to comment.