Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304360
b: refs/heads/master
c: 892cb6d
h: refs/heads/master
v: v3
  • Loading branch information
Laxman Dewangan authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 6671d6c commit cc88c19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: c5714b5acfb0ea7816340ba37bb8631c7061448e
refs/heads/master: 892cb6dc9fbbfa7281f3aa53aa6599618aec7cb1
8 changes: 4 additions & 4 deletions trunk/drivers/staging/iio/light/isl29028.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ static int isl29028_write_raw(struct iio_dev *indio_dev,
mutex_lock(&chip->lock);
switch (chan->type) {
case IIO_PROXIMITY:
if (mask != IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT) {
if (mask != IIO_CHAN_INFO_SAMP_FREQ) {
dev_err(chip->dev,
"proximity: mask value 0x%08lx not supported\n",
mask);
Expand All @@ -294,7 +294,7 @@ static int isl29028_write_raw(struct iio_dev *indio_dev,
break;

case IIO_LIGHT:
if (mask != IIO_CHAN_INFO_SCALE_SEPARATE_BIT) {
if (mask != IIO_CHAN_INFO_SCALE) {
dev_err(chip->dev,
"light: mask value 0x%08lx not supported\n",
mask);
Expand Down Expand Up @@ -349,14 +349,14 @@ static int isl29028_read_raw(struct iio_dev *indio_dev,
ret = IIO_VAL_INT;
break;

case IIO_CHAN_INFO_SAMP_FREQ_SEPARATE_BIT:
case IIO_CHAN_INFO_SAMP_FREQ:
if (chan->type != IIO_PROXIMITY)
break;
*val = chip->prox_sampling;
ret = IIO_VAL_INT;
break;

case IIO_CHAN_INFO_SCALE_SEPARATE_BIT:
case IIO_CHAN_INFO_SCALE:
if (chan->type != IIO_LIGHT)
break;
*val = chip->lux_scale;
Expand Down

0 comments on commit cc88c19

Please sign in to comment.