mirror of
https://github.com/vsergeev/c-periphery.git
synced 2026-02-06 07:02:14 +08:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user