gpio: generic: Add label to platform data

When registering more than one platform device, it is
useful to set the gpio chip label in the platform data.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Pawel Moll
2014-01-30 13:18:57 +00:00
committed by Linus Walleij
parent b7ab697369
commit 781f6d710d
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
#include <linux/spinlock_types.h>
struct bgpio_pdata {
const char *label;
int base;
int ngpio;
};