aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-05 09:45:03 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-03-05 09:45:03 +0000
commit6bece706ec1b6347b57b9208bfc9cad9697d758a (patch)
tree3d3075c63929d386f2370858c21819adbbea7262 /target/linux/generic/files
parentdab37abc4d1bbbbbb5b394308154d94d057c3d0b (diff)
downloadupstream-6bece706ec1b6347b57b9208bfc9cad9697d758a.tar.gz
upstream-6bece706ec1b6347b57b9208bfc9cad9697d758a.tar.bz2
upstream-6bece706ec1b6347b57b9208bfc9cad9697d758a.zip
mac80211: ath9k: enable GPIO buttons
Enable platform-defined GPIO button support for ath9k device. Key poller is activated for attached platform buttons. Requires ath9k GPIO chip access. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> SVN-Revision: 48921
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/include/linux/ath9k_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/ath9k_platform.h b/target/linux/generic/files/include/linux/ath9k_platform.h
index 823e5acf46..e543a64060 100644
--- a/target/linux/generic/files/include/linux/ath9k_platform.h
+++ b/target/linux/generic/files/include/linux/ath9k_platform.h
@@ -46,6 +46,10 @@ struct ath9k_platform_data {
int num_leds;
const struct gpio_led *leds;
const char *led_name;
+
+ unsigned num_btns;
+ const struct gpio_keys_button *btns;
+ unsigned btn_poll_interval;
};
#endif /* _LINUX_ATH9K_PLATFORM_H */