Skip to content

Commit d27ac0f

Browse files
committed
Input: cyttsp - remove public header
There is nothing in include/linux/input/cyttsp.h that might be of interes to the kernel at large, so let's move this information into the driver code and remove the header. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20210531052307.1433979-2-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 0ff5cd5 commit d27ac0f

6 files changed

Lines changed: 12 additions & 32 deletions

File tree

‎MAINTAINERS‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4918,7 +4918,6 @@ M: Linus Walleij <linus.walleij@linaro.org>
49184918
L: linux-input@vger.kernel.org
49194919
S: Maintained
49204920
F: drivers/input/touchscreen/cyttsp*
4921-
F: include/linux/input/cyttsp.h
49224921

49234922
D-LINK DIR-685 TOUCHKEYS DRIVER
49244923
M: Linus Walleij <linus.walleij@linaro.org>

‎drivers/input/touchscreen/cyttsp_core.c‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@
4646
#define CY_MAXZ 255
4747
#define CY_DELAY_DFLT 20 /* ms */
4848
#define CY_DELAY_MAX 500
49-
#define CY_ACT_DIST_DFLT 0xF8
49+
/* Active distance in pixels for a gesture to be reported */
50+
#define CY_ACT_DIST_DFLT 0xF8 /* pixels */
5051
#define CY_ACT_DIST_MASK 0x0F
52+
/* Active Power state scanning/processing refresh interval */
53+
#define CY_ACT_INTRVL_DFLT 0x00 /* ms */
54+
/* Low Power state scanning/processing refresh interval */
55+
#define CY_LP_INTRVL_DFLT 0x0A /* ms */
56+
/* touch timeout for the Active power */
57+
#define CY_TCH_TMOUT_DFLT 0xFF /* ms */
5158
#define CY_HNDSHK_BIT 0x80
5259
/* device mode bits */
5360
#define CY_OPERATE_MODE 0x00

‎drivers/input/touchscreen/cyttsp_core.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/module.h>
2323
#include <linux/types.h>
2424
#include <linux/device.h>
25-
#include <linux/input/cyttsp.h>
2625
#include <linux/regulator/consumer.h>
2726

2827
#define CY_NUM_RETRY 16 /* max number of retries for read ops */

‎drivers/input/touchscreen/cyttsp_i2c.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
#include <linux/i2c.h>
1919
#include <linux/input.h>
2020

21+
#define CY_I2C_NAME "cyttsp-i2c"
22+
2123
#define CY_I2C_DATA_SIZE 128
2224

2325
static const struct cyttsp_bus_ops cyttsp_i2c_bus_ops = {

‎drivers/input/touchscreen/cyttsp_spi.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
#include <linux/input.h>
2121
#include <linux/spi/spi.h>
2222

23+
#define CY_SPI_NAME "cyttsp-spi"
24+
2325
#define CY_SPI_WR_OP 0x00 /* r/~w */
2426
#define CY_SPI_RD_OP 0x01
2527
#define CY_SPI_CMD_BYTES 4

‎include/linux/input/cyttsp.h‎

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)