gpio: omap: Drop 'method' parameter

The "method" parameter was part of the original port of the driver from
the kernel.  At some point this may have been added to allow for future
differentiation (as omap1 and omap2 have different GPIO IP blocks, so
this wasn't an unreasonable thing to do).  At this point however it's
just extra overhead, so drop.

Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini
2015-07-31 19:55:09 -04:00
parent 1480fdf8a6
commit 0a9e34056f
6 changed files with 94 additions and 86 deletions

View File

@@ -23,24 +23,19 @@
#include <asm/arch/cpu.h>
enum gpio_method {
METHOD_GPIO_24XX = 4,
};
#ifdef CONFIG_DM_GPIO
/* Information about a GPIO bank */
struct omap_gpio_platdata {
int bank_index;
ulong base; /* address of registers in physical memory */
enum gpio_method method;
const char *port_name;
};
#else
struct gpio_bank {
void *base;
int method;
};
extern const struct gpio_bank *const omap_gpio_bank;