Made irq handling more portable (use of gpio_to_irq())

With this change the ads7846_device.c also compiles for the beaglebone.