.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Microchip AR1020 and AR1021 driver for I2C |
---|
3 | 4 | * |
---|
4 | 5 | * Author: Christian Gmeiner <christian.gmeiner@gmail.com> |
---|
5 | | - * |
---|
6 | | - * License: GPLv2 as published by the FSF. |
---|
7 | 6 | */ |
---|
8 | 7 | |
---|
9 | 8 | #include <linux/bitops.h> |
---|
.. | .. |
---|
14 | 13 | #include <linux/irq.h> |
---|
15 | 14 | #include <linux/interrupt.h> |
---|
16 | 15 | |
---|
17 | | -#define AR1021_TOCUH_PKG_SIZE 5 |
---|
| 16 | +#define AR1021_TOUCH_PKG_SIZE 5 |
---|
18 | 17 | |
---|
19 | 18 | #define AR1021_MAX_X 4095 |
---|
20 | 19 | #define AR1021_MAX_Y 4095 |
---|
.. | .. |
---|
26 | 25 | struct ar1021_i2c { |
---|
27 | 26 | struct i2c_client *client; |
---|
28 | 27 | struct input_dev *input; |
---|
29 | | - u8 data[AR1021_TOCUH_PKG_SIZE]; |
---|
| 28 | + u8 data[AR1021_TOUCH_PKG_SIZE]; |
---|
30 | 29 | }; |
---|
31 | 30 | |
---|
32 | 31 | static irqreturn_t ar1021_i2c_irq(int irq, void *dev_id) |
---|