Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202186
b: refs/heads/master
c: 7804302
h: refs/heads/master
v: v3
  • Loading branch information
Anatolij Gustschin authored and Dmitry Torokhov committed Jun 28, 2010
1 parent 717f864 commit 5213b3c
Show file tree
Hide file tree
Showing 3 changed files with 6 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: c8f2edc56acf0a55ede777c07314c9744bb723be
refs/heads/master: 7804302b14032d357d889e4a23e463eb6a6c5136
5 changes: 4 additions & 1 deletion trunk/drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,10 @@ static int __devinit ads7846_probe(struct spi_device *spi)
goto err_put_regulator;
}

if (request_irq(spi->irq, ads7846_irq, IRQF_TRIGGER_FALLING,
if (!pdata->irq_flags)
pdata->irq_flags = IRQF_TRIGGER_FALLING;

if (request_irq(spi->irq, ads7846_irq, pdata->irq_flags,
spi->dev.driver->name, ts)) {
dev_info(&spi->dev,
"trying pin change workaround on irq %d\n", spi->irq);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/spi/ads7846.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ struct ads7846_platform_data {
void (*filter_cleanup)(void *filter_data);
void (*wait_for_sync)(void);
bool wakeup;
unsigned long irq_flags;
};

0 comments on commit 5213b3c

Please sign in to comment.