triggerhappy: unbreak build against 4.7+ kernel headers
commit009564314339a16828c7ae121b56dc1f1bd27aaa
authorPeter Korsgaard <peter@korsgaard.com>
Sun, 31 Jul 2016 08:31:45 +0000 (31 10:31 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 31 Jul 2016 18:22:20 +0000 (31 20:22 +0200)
tree52ae94dea444bf71e6d0dd97a60d113a8885d447
parentfc174b7057495ebb31393ae27f3ceeefdc490022
triggerhappy: unbreak build against 4.7+ kernel headers

Fixes:
http://autobuild.buildroot.org/results/3d0/3d07de291ec64a16d03e10f0cf1faeb19d546412/
http://autobuild.buildroot.org/results/b03/b03500e7d85786c6eee8f0adc38801340129aa14/
http://autobuild.buildroot.org/results/dd0/dd05caf0db318a9287d239cc6fa5470ccdc2ce7c/
http://autobuild.buildroot.org/results/76b/76bb000d041bd0828d15aa04138e222a4773ce94/

Triggerhappy used the wrong constants for array sizes, causing a compilation
error about out of array bounds initializers with the SW_PEN_INSERTED switch
event added in 4.7. Fix it by using the correct constants (<foo>_CNT) instead.

Patch submitted upstream: https://github.com/wertarbyte/triggerhappy/pull/12

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/triggerhappy/0001-eventtable.h-use-correct-array-sizes-to-fix-building.patch [new file with mode: 0644]