| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2000-2001 Vojtech Pavlik |
|---|
| 3 | 4 | */ |
|---|
| .. | .. |
|---|
| 7 | 8 | */ |
|---|
| 8 | 9 | |
|---|
| 9 | 10 | /* |
|---|
| 10 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 11 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 12 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 13 | | - * (at your option) any later version. |
|---|
| 14 | | - * |
|---|
| 15 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 16 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 18 | | - * GNU General Public License for more details. |
|---|
| 19 | | - * |
|---|
| 20 | | - * You should have received a copy of the GNU General Public License |
|---|
| 21 | | - * along with this program; if not, write to the Free Software |
|---|
| 22 | | - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 23 | 11 | */ |
|---|
| 24 | 12 | |
|---|
| 25 | 13 | #include <linux/errno.h> |
|---|
| .. | .. |
|---|
| 53 | 41 | char phys[32]; |
|---|
| 54 | 42 | }; |
|---|
| 55 | 43 | |
|---|
| 56 | | -static void gunze_process_packet(struct gunze* gunze) |
|---|
| 44 | +static void gunze_process_packet(struct gunze *gunze) |
|---|
| 57 | 45 | { |
|---|
| 58 | 46 | struct input_dev *dev = gunze->dev; |
|---|
| 59 | 47 | |
|---|
| .. | .. |
|---|
| 72 | 60 | static irqreturn_t gunze_interrupt(struct serio *serio, |
|---|
| 73 | 61 | unsigned char data, unsigned int flags) |
|---|
| 74 | 62 | { |
|---|
| 75 | | - struct gunze* gunze = serio_get_drvdata(serio); |
|---|
| 63 | + struct gunze *gunze = serio_get_drvdata(serio); |
|---|
| 76 | 64 | |
|---|
| 77 | 65 | if (data == '\r') { |
|---|
| 78 | 66 | gunze_process_packet(gunze); |
|---|