Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 337150
b: refs/heads/master
c: e1562ef
h: refs/heads/master
v: v3
  • Loading branch information
Peter Meerwald authored and Jonathan Cameron committed Oct 19, 2012
1 parent 0ce683f commit 56efd62
Show file tree
Hide file tree
Showing 2 changed files with 1 addition 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: 73327b4c80713da3a854fb04ef7e9739fe006709
refs/heads/master: e1562ef30438d4850e3f4ea0fc5711ea658a1f69
3 changes: 0 additions & 3 deletions trunk/drivers/iio/adc/at91_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ struct at91_adc_state {
struct clk *clk;
bool done;
int irq;
bool irq_enabled;
u16 last_value;
struct mutex lock;
u8 num_channels;
Expand Down Expand Up @@ -85,7 +84,6 @@ static irqreturn_t at91_adc_trigger_handler(int irq, void *p)
buffer->access->store_to(buffer, (u8 *)st->buffer);

iio_trigger_notify_done(idev->trig);
st->irq_enabled = true;

/* Needed to ACK the DRDY interruption */
at91_adc_readl(st, AT91_ADC_LCDR);
Expand All @@ -106,7 +104,6 @@ static irqreturn_t at91_adc_eoc_trigger(int irq, void *private)

if (iio_buffer_enabled(idev)) {
disable_irq_nosync(irq);
st->irq_enabled = false;
iio_trigger_poll(idev->trig, iio_get_time_ns());
} else {
st->last_value = at91_adc_readl(st, AT91_ADC_LCDR);
Expand Down

0 comments on commit 56efd62

Please sign in to comment.