Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304375
b: refs/heads/master
c: a8c0ed7
h: refs/heads/master
i:
  304373: 4a4c88a
  304371: c8e29a0
  304367: 42343a3
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 8924dd9 commit 3f6457b
Show file tree
Hide file tree
Showing 2 changed files with 8 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: a74437e46b1513bf271ae333f81ffc238557d92d
refs/heads/master: a8c0ed756574ba5a484cd8238892f88501ff400d
10 changes: 7 additions & 3 deletions trunk/drivers/staging/iio/light/isl29028.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ static int isl29028_read_raw(struct iio_dev *indio_dev,

mutex_lock(&chip->lock);
switch (mask) {
case 0:
case IIO_CHAN_INFO_RAW:
case IIO_CHAN_INFO_PROCESSED:
switch (chan->type) {
case IIO_LIGHT:
ret = isl29028_als_get(chip, val);
Expand Down Expand Up @@ -391,12 +392,15 @@ static const struct iio_chan_spec isl29028_channels[] = {
{
.type = IIO_LIGHT,
.processed_val = 1,
.info_mask = IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
.info_mask = IIO_CHAN_INFO_PROCESSED_SEPARATE_BIT |
IIO_CHAN_INFO_SCALE_SEPARATE_BIT,
}, {
.type = IIO_INTENSITY,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT,
}, {
.type = IIO_PROXIMITY,
.info_mask = IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT,
.info_mask = IIO_CHAN_INFO_RAW_SEPARATE_BIT |
IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT,
}
};

Expand Down

0 comments on commit 3f6457b

Please sign in to comment.