mirror of
https://github.com/Fishwaldo/build.git
synced 2025-07-23 21:39:02 +00:00
Remove report all gpios in debugfs patch
no longer applicable
This commit is contained in:
parent
1ff86926ec
commit
485a79bd9d
1 changed files with 0 additions and 46 deletions
|
@ -1,46 +0,0 @@
|
|||
From d737953ac85dde91eeb0340b5ac999eb48b73b04 Mon Sep 17 00:00:00 2001
|
||||
From: Russell King <rmk+kernel@arm.linux.org.uk>
|
||||
Date: Mon, 28 Dec 2015 13:55:13 +0100
|
||||
Subject: [PATCH] gpio: report all gpios in debugfs
|
||||
|
||||
---
|
||||
drivers/gpio/gpio-mvebu.c | 4 ++--
|
||||
drivers/gpio/gpiolib.c | 3 ++-
|
||||
2 files changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c
|
||||
index d428b97..fe172b7 100644
|
||||
--- a/drivers/gpio/gpio-mvebu.c
|
||||
+++ b/drivers/gpio/gpio-mvebu.c
|
||||
@@ -514,8 +514,8 @@ static void mvebu_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
|
||||
bool is_out;
|
||||
|
||||
label = gpiochip_is_requested(chip, i);
|
||||
- if (!label)
|
||||
- continue;
|
||||
+// if (!label)
|
||||
+// continue;
|
||||
|
||||
msk = 1 << i;
|
||||
is_out = !(io_conf & msk);
|
||||
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
|
||||
index b747c76..d61fb66
|
||||
--- a/drivers/gpio/gpiolib.c
|
||||
+++ b/drivers/gpio/gpiolib.c
|
||||
@@ -2895,14 +2895,14 @@ static void gpiolib_dbg_show(struct seq_file *s, struct gpio_device *gdev)
|
||||
int is_irq;
|
||||
|
||||
for (i = 0; i < gdev->ngpio; i++, gpio++, gdesc++) {
|
||||
- if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) {
|
||||
+/* if (!test_bit(FLAG_REQUESTED, &gdesc->flags)) {
|
||||
if (gdesc->name) {
|
||||
seq_printf(s, " gpio-%-3d (%-20.20s)\n",
|
||||
gpio, gdesc->name);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
-
|
||||
+*/
|
||||
gpiod_get_direction(gdesc);
|
||||
is_out = test_bit(FLAG_IS_OUT, &gdesc->flags);
|
||||
is_irq = test_bit(FLAG_USED_AS_IRQ, &gdesc->flags);
|
Loading…
Add table
Add a link
Reference in a new issue