Replace the simple GPIO chip registration by a platform driver and make ath79_gpio_init() just register the device.
Showing the changes to include/linux/platform_data (1 of 3 files). Show all
Unified · Split
| @@ -0,0 +1,19 @@ | ||
| 1 | +/* | |
| 2 | + * Atheros AR7XXX/AR9XXX GPIO controller platform data | |
| 3 | + * | |
| 4 | + * Copyright (C) 2015 Alban Bedel <albeu@free.fr> | |
| 5 | + * | |
| 6 | + * This program is free software; you can redistribute it and/or modify | |
| 7 | + * it under the terms of the GNU General Public License version 2 as | |
| 8 | + * published by the Free Software Foundation. | |
| 9 | + */ | |
| 10 | + | |
| 11 | +#ifndef __LINUX_PLATFORM_DATA_GPIO_ATH79_H | |
| 12 | +#define __LINUX_PLATFORM_DATA_GPIO_ATH79_H | |
| 13 | + | |
| 14 | +struct ath79_gpio_platform_data { | |
| 15 | + unsigned ngpios; | |
| 16 | + bool oe_inverted; | |
| 17 | +}; | |
| 18 | + | |
| 19 | +#endif | |