aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpio/gpio-event-mon.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpio/gpio-event-mon.c')
-rw-r--r--tools/gpio/gpio-event-mon.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/gpio/gpio-event-mon.c b/tools/gpio/gpio-event-mon.c
index 1c14c2595158..be6768e21b09 100644
--- a/tools/gpio/gpio-event-mon.c
+++ b/tools/gpio/gpio-event-mon.c
@@ -14,6 +14,7 @@
14#include <unistd.h> 14#include <unistd.h>
15#include <stdlib.h> 15#include <stdlib.h>
16#include <stdbool.h> 16#include <stdbool.h>
17#include <stdint.h>
17#include <stdio.h> 18#include <stdio.h>
18#include <dirent.h> 19#include <dirent.h>
19#include <errno.h> 20#include <errno.h>
@@ -27,8 +28,8 @@
27 28
28int monitor_device(const char *device_name, 29int monitor_device(const char *device_name,
29 unsigned int line, 30 unsigned int line,
30 u_int32_t handleflags, 31 uint32_t handleflags,
31 u_int32_t eventflags, 32 uint32_t eventflags,
32 unsigned int loops) 33 unsigned int loops)
33{ 34{
34 struct gpioevent_request req; 35 struct gpioevent_request req;
@@ -145,8 +146,8 @@ int main(int argc, char **argv)
145 const char *device_name = NULL; 146 const char *device_name = NULL;
146 unsigned int line = -1; 147 unsigned int line = -1;
147 unsigned int loops = 0; 148 unsigned int loops = 0;
148 u_int32_t handleflags = GPIOHANDLE_REQUEST_INPUT; 149 uint32_t handleflags = GPIOHANDLE_REQUEST_INPUT;
149 u_int32_t eventflags = 0; 150 uint32_t eventflags = 0;
150 int c; 151 int c;
151 152
152 while ((c = getopt(argc, argv, "c:n:o:dsrf?")) != -1) { 153 while ((c = getopt(argc, argv, "c:n:o:dsrf?")) != -1) {