vsergeev/c-periphery

Update GPIO code?

Closed this issue · 2 comments

I noticed this while browsing the gpio.h source. You use it here

struct gpioevent_data event_data = {0};

/**
 * struct gpioevent_data - The actual event being pushed to userspace
 * @timestamp: best estimate of time of event occurrence, in nanoseconds
 * @id: event identifier
 *
 * Note: This struct is part of ABI v1 and is deprecated.
 * Use &struct gpio_v2_line_event instead.
 */
struct gpioevent_data {
	__u64 timestamp;
	__u32 id;
};

v2.4.0 is now released with gpio-cdev v2 ABI support, so c-periphery will automatically build the v2 ABI implementation if the kernel headers support it.

sgjava commented

Thanks man.