Source
1
+
// SPDX-License-Identifier: GPL-2.0-or-later
1
2
/*
2
3
* Force feedback support for memoryless devices
3
4
*
4
5
* Copyright (c) 2006 Anssi Hannula <anssi.hannula@gmail.com>
5
6
* Copyright (c) 2006 Dmitry Torokhov <dtor@mail.ru>
6
7
*/
7
8
8
9
/*
9
-
* This program is free software; you can redistribute it and/or modify
10
-
* it under the terms of the GNU General Public License as published by
11
-
* the Free Software Foundation; either version 2 of the License, or
12
-
* (at your option) any later version.
13
-
*
14
-
* This program is distributed in the hope that it will be useful,
15
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
-
* GNU General Public License for more details.
18
-
*
19
-
* You should have received a copy of the GNU General Public License
20
-
* along with this program; if not, write to the Free Software
21
-
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
10
*/
23
11
24
12
/* #define DEBUG */
25
13
26
14
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
27
15
28
16
#include <linux/slab.h>
29
17
#include <linux/input.h>
30
18
#include <linux/module.h>
31
19
#include <linux/mutex.h>