diff options
author | John Crispin <john@openwrt.org> | 2013-08-01 14:31:28 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-08-01 14:31:28 +0000 |
commit | 1eabf431df03b00e0fa7c2986f7c08ea0c404a4d (patch) | |
tree | 9f78a253690de702c74e91b13ecf96da616f9526 /package/boot/imx-bootlets/patches/002-set_elftosb_config.patch | |
parent | ef964229202bd9afdf8aaa7bc60bba1d8e401531 (diff) | |
download | upstream-1eabf431df03b00e0fa7c2986f7c08ea0c404a4d.tar.gz upstream-1eabf431df03b00e0fa7c2986f7c08ea0c404a4d.tar.bz2 upstream-1eabf431df03b00e0fa7c2986f7c08ea0c404a4d.zip |
gpio-button-hotplug: use gpio_button_get_value() to initialize last_state.
TL-WR720N-v3 has a slider switch composed of 2 GPIO buttons which can be
used to swtich between 3 positions. At leat 1 button is in pressed state
in any of those positions. Initialize 'last_state' as 0 (released) will
cause the device to automatically enter failsafe mode on every bootup.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
SVN-Revision: 37643
Diffstat (limited to 'package/boot/imx-bootlets/patches/002-set_elftosb_config.patch')
0 files changed, 0 insertions, 0 deletions