Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267531
b: refs/heads/master
c: cdf3870
h: refs/heads/master
i:
  267529: 0338af0
  267527: ac6abdf
v: v3
  • Loading branch information
Jonathan Cameron authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent 7ff69c6 commit 7044993
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 17 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: 5b847ccbf52844a6a6ce95af45c0fd9f9e187c46
refs/heads/master: cdf387096e34e71eeb6238183dd1856fd94a4e38
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/adc/ad7298_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "../iio.h"
#include "../sysfs.h"
#include "../ring_generic.h"
#include "adc.h"

#include "ad7298.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/adc/ad7476_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "../iio.h"
#include "../sysfs.h"
#include "../ring_generic.h"
#include "adc.h"

#include "ad7476.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/adc/ad7606_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "../iio.h"
#include "../sysfs.h"
#include "../ring_generic.h"
#include "adc.h"

#include "ad7606.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/adc/ad7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include "../iio.h"
#include "../sysfs.h"
#include "../ring_generic.h"
#include "adc.h"

#include "ad7780.h"

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/staging/iio/adc/ad7793.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "../ring_generic.h"
#include "../ring_sw.h"
#include "../trigger.h"
#include "adc.h"

#include "ad7793.h"

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/iio/adc/ad7887_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "../iio.h"
#include "../sysfs.h"
#include "../ring_generic.h"
#include "adc.h"


#include "ad7887.h"

Expand Down
13 changes: 9 additions & 4 deletions trunk/drivers/staging/iio/adc/ad799x_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@

#include "../iio.h"
#include "../sysfs.h"

#include "../ring_generic.h"
#include "adc.h"

#include "ad799x.h"

/*
Expand Down Expand Up @@ -336,8 +335,14 @@ static irqreturn_t ad799x_event_handler(int irq, void *private)
if (status & (1 << i))
iio_push_event(indio_dev, 0,
i & 0x1 ?
IIO_EVENT_CODE_IN_HIGH_THRESH(i >> 1) :
IIO_EVENT_CODE_IN_LOW_THRESH(i >> 1),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN,
(i >> 1),
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_RISING) :
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN,
(i >> 1),
IIO_EV_TYPE_THRESH,
IIO_EV_DIR_FALLING),
iio_get_time_ns());
}

Expand Down
23 changes: 17 additions & 6 deletions trunk/drivers/staging/iio/adc/max1363_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@

#include "../iio.h"
#include "../sysfs.h"

#include "../ring_generic.h"
#include "adc.h"

#include "max1363.h"

#define MAX1363_MODE_SINGLE(_num, _mask) { \
Expand Down Expand Up @@ -592,10 +591,22 @@ static int max1363_write_thresh(struct iio_dev *indio_dev,
}

static const int max1363_event_codes[] = {
IIO_EVENT_CODE_IN_LOW_THRESH(3), IIO_EVENT_CODE_IN_HIGH_THRESH(3),
IIO_EVENT_CODE_IN_LOW_THRESH(2), IIO_EVENT_CODE_IN_HIGH_THRESH(2),
IIO_EVENT_CODE_IN_LOW_THRESH(1), IIO_EVENT_CODE_IN_HIGH_THRESH(1),
IIO_EVENT_CODE_IN_LOW_THRESH(0), IIO_EVENT_CODE_IN_HIGH_THRESH(0)
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 0,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 1,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 2,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 3,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_FALLING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 0,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 1,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 2,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
IIO_UNMOD_EVENT_CODE(IIO_EV_CLASS_IN, 3,
IIO_EV_TYPE_THRESH, IIO_EV_DIR_RISING),
};

static irqreturn_t max1363_event_handler(int irq, void *private)
Expand Down

0 comments on commit 7044993

Please sign in to comment.