gpio/langwell: Simplify demux loop
authorThomas Gleixner <tglx@linutronix.de>
Thu, 17 Mar 2011 19:32:55 +0000 (19:32 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 17 Mar 2011 19:49:03 +0000 (13:49 -0600)
commit732063b92bb727b27e61580ce278dddefe31c6ad
tree3e524f09833a7a65f0f9ce3279c77b0c599d198d
parent674db90690a5988bdaa3bb2a54619c0de50d31e9
gpio/langwell: Simplify demux loop

Use __ffs() to find the pending interrupt source instead of looping 32
times.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Alek Du <alek.du@intel.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/langwell_gpio.c