Merge tag 'v5.15.57' into rpi-5.15.y
[platform/kernel/linux-rpi.git] / include / linux / mfd / rpisense / joystick.h
1 /*
2  * Raspberry Pi Sense HAT joystick driver
3  * http://raspberrypi.org
4  *
5  * Copyright (C) 2015 Raspberry Pi
6  *
7  * Author: Serge Schneider
8  *
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.
13  *
14  */
15
16 #ifndef __LINUX_RPISENSE_JOYSTICK_H_
17 #define __LINUX_RPISENSE_JOYSTICK_H_
18
19 #include <linux/input.h>
20 #include <linux/interrupt.h>
21 #include <linux/gpio/consumer.h>
22 #include <linux/platform_device.h>
23
24 struct rpisense;
25
26 struct rpisense_js {
27         struct platform_device *pdev;
28         struct input_dev *keys_dev;
29         struct gpio_desc *keys_desc;
30         struct work_struct keys_work_s;
31         int keys_irq;
32 };
33
34
35 #endif