From: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
To: linux-gpio@vger.kernel.org
Subject: [PATCH 2/2] gpio: ath79: set ngpio from platform data
Date: Fri, 17 Feb 2017 16:07:38 +0100 [thread overview]
Message-ID: <2597502.p1XNpkbSeF@tool> (raw)
The number of GPIOs defaults to 32 for all ath79 platforms spite the
code is checking the number of GPIOs from platform data.
Set ngpio to the number of GPIOs obtained previously.
Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c
index 5a189b4..0edce15 100644
--- a/drivers/gpio/gpio-ath79.c
+++ b/drivers/gpio/gpio-ath79.c
@@ -274,6 +274,7 @@ static int ath79_gpio_probe(struct platform_device *pdev)
}
/* Use base 0 to stay compatible with legacy platforms */
ctrl->gc.base = 0;
+ ctrl->gc.ngpio = ath79_gpio_count;
err = gpiochip_add_data(&ctrl->gc, ctrl);
if (err) {
reply other threads:[~2017-02-17 15:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2597502.p1XNpkbSeF@tool \
--to=dgcbueu@gmail.com \
--cc=linux-gpio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.