2 * Raspberry Pi Sense HAT joystick driver
3 * http://raspberrypi.org
5 * Copyright (C) 2015 Raspberry Pi
7 * Author: Serge Schneider
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
16 #ifndef __LINUX_RPISENSE_JOYSTICK_H_
17 #define __LINUX_RPISENSE_JOYSTICK_H_
19 #include <linux/input.h>
20 #include <linux/interrupt.h>
21 #include <linux/gpio/consumer.h>
22 #include <linux/platform_device.h>
27 struct platform_device *pdev;
28 struct input_dev *keys_dev;
29 struct gpio_desc *keys_desc;
30 struct work_struct keys_work_s;