aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/rpisense/joystick.h
blob: 56196dc2af10e464a1e3f98b028dca1c9c9cff39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Raspberry Pi Sense HAT joystick driver
 * http://raspberrypi.org
 *
 * Copyright (C) 2015 Raspberry Pi
 *
 * Author: Serge Schneider
 *
 *  This program is free software; you can redistribute  it and/or modify it
 *  under  the terms of  the GNU General  Public License as published by the
 *  Free Software Foundation;  either version 2 of the  License, or (at your
 *  option) any later version.
 *
 */

#ifndef __LINUX_RPISENSE_JOYSTICK_H_
#define __LINUX_RPISENSE_JOYSTICK_H_

#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/gpio/consumer.h>
#include <linux/platform_device.h>

struct rpisense;

struct rpisense_js {
	struct platform_device *pdev;
	struct input_dev *keys_dev;
	struct gpio_desc *keys_desc;
	struct work_struct keys_work_s;
	int keys_irq;
};


#endif