gpio: disable cdev implementation under older gpio-cdev linux abi

that preceded the introduction of line events. resolves #30. special
thanks to Fabrice Fontaine <fontaine.fabrice@gmail.com> for the original
implementation.
This commit is contained in:
Vanya A. Sergeev
2020-09-03 01:32:28 -05:00
parent 3279138ebe
commit 5b81b89926

View File

@@ -23,6 +23,12 @@
#if PERIPHERY_GPIO_CDEV_SUPPORT
#include <linux/gpio.h>
/* Disable cdev support when building with older kernel headers that don't yet
* support line events in the gpio-cdev abi */
#ifndef GPIO_GET_LINEEVENT_IOCTL
#undef PERIPHERY_GPIO_CDEV_SUPPORT
#endif
#endif
#include "gpio.h"