tests: mockup: use KERNEL_VERSION()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 22 Jul 2019 09:46:59 +0000 (11:46 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 22 Jul 2019 09:46:59 +0000 (11:46 +0200)
commitce247c6c94ed2ab76fe64d0692cdbb5dab5ffc4a
treef8fc81ad23b2b6ad700ee63a7fa26026c40612bc
parent689dd6e6876375413510fa3d0eab7108f0f66202
tests: mockup: use KERNEL_VERSION()

There's no need to reimplement checking the kernel version. An
appropriate macro - KERNEL_VERSION() - is already provided in
linux/version.h. Use it in libgpiomockup.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
configure.ac
tests/mockup/gpio-mockup.c