linux/drivers/staging/mt7621-gpio
Sergio Paracuellos e119216dea staging: mt7621-gpio: fix masks for gpio pin
BIT macro is being used to get mask for gpio's pin
which is retrieved using 'hwirq' from struct irq_data.
The problem here is that 'hwirq' can be as large as 95,
and 1UL << 95 is unlikely to work well. Instead of using
BIT macro use a new PIN_MASK macro which takes into account
pin and WIDTH of the bank in order to make a proper mask for
the gpio pin. Also 'd->hwirq' has been replaced by 'pin' in
some places because there was a 'pin' variable in changed
functions with the proper value. This improves readability.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-06-01 11:17:05 +02:00
..
gpio-mt7621.c staging: mt7621-gpio: fix masks for gpio pin 2018-06-01 11:17:05 +02:00
Kconfig
Makefile
mediatek,mt7621-gpio.txt staging: mt7621-gpio: dt-bindings: add interrupt nodes to bindings doc 2018-05-25 18:49:32 +02:00
TODO staging: mt7621-gpio: update TODO file 2018-05-25 18:49:32 +02:00