]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: Add to_irq() member to asic3 gpio_chip structure
authorPaul Parsons <lost.distance@yahoo.com>
Tue, 31 Jan 2012 01:18:35 +0000 (01:18 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Mar 2012 17:46:39 +0000 (18:46 +0100)
commit450b1151065ae967583fe69c82c50140560a5681
treeff4c82a4bbafee35a04df13f83ac691c4aa3d318
parentedcf3196e9e646acc88d53e3bf355a6975daf109
mfd: Add to_irq() member to asic3 gpio_chip structure

The gpio_to_irq() macro is now defined as __gpio_to_irq() instead of IRQ_GPIO().
The __gpio_to_irq() function returns -ENXIO if the referenced gpio_chip
structure does not define a to_irq() member.
This is true of the asic3 gpio_chip structure, and thus calls to gpio_to_irq()
now fail (for example from the gpio-vbus module).
This patch defines the to_irq() member in the asic3 gpio_chip structure.

Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/asic3.c