kernel: mac80211: set the parent of the ath9k gpio_chip
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Fri, 1 Jul 2016 13:41:19 +0000 (15:41 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 2 Jul 2016 17:34:50 +0000 (19:34 +0200)
commit70afc0bdd1fb0474b864998f7674316a00954715
tree2147e44ccd87cf793500809f5fdf7ba8019761be
parent7b7ea91e24618313fdb990d000655f3afd07fe0f
kernel: mac80211: set the parent of the ath9k gpio_chip

This allows gpiolib to re-use ath9k's devicetree node as GPIO
controller.
Example:

ath9k: ath9k@0 {
#gpio-cells = <2>;
gpio-controller;
}

Now the ath9k node can be used just like any other GPIO controller:
gpios = <&ath9k 1 GPIO_ACTIVE_HIGH>;

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch