mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
avr32: minor GPIO handling updates
On the odd chance some code uses a pin as a GPIO IRQ without calling gpio_request() or gpio_direction_input(), the debug dump should still show its pin status. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
This commit is contained in:
parent
c1f24ac99f
commit
aafafddb01
@ -318,6 +318,8 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
|
||||
const char *label;
|
||||
|
||||
label = gpiochip_is_requested(chip, i);
|
||||
if (!label && (imr & mask))
|
||||
label = "[irq]";
|
||||
if (!label)
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user