Skip to content

Commit

Permalink
Input: cyttsp - remove public header
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
dtor committed Jun 2, 2021
1 parent 0ff5cd5 commit d27ac0f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 32 deletions.
1 change: 0 additions & 1 deletion MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4918,7 +4918,6 @@ M: Linus Walleij <[email protected]>
L: [email protected]
S: Maintained
F: drivers/input/touchscreen/cyttsp*
F: include/linux/input/cyttsp.h

D-LINK DIR-685 TOUCHKEYS DRIVER
M: Linus Walleij <[email protected]>
Expand Down
9 changes: 8 additions & 1 deletion drivers/input/touchscreen/cyttsp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,15 @@
#define CY_MAXZ 255
#define CY_DELAY_DFLT 20 /* ms */
#define CY_DELAY_MAX 500
#define CY_ACT_DIST_DFLT 0xF8
/* Active distance in pixels for a gesture to be reported */
#define CY_ACT_DIST_DFLT 0xF8 /* pixels */
#define CY_ACT_DIST_MASK 0x0F
/* Active Power state scanning/processing refresh interval */
#define CY_ACT_INTRVL_DFLT 0x00 /* ms */
/* Low Power state scanning/processing refresh interval */
#define CY_LP_INTRVL_DFLT 0x0A /* ms */
/* touch timeout for the Active power */
#define CY_TCH_TMOUT_DFLT 0xFF /* ms */
#define CY_HNDSHK_BIT 0x80
/* device mode bits */
#define CY_OPERATE_MODE 0x00
Expand Down
1 change: 0 additions & 1 deletion drivers/input/touchscreen/cyttsp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <linux/module.h>
#include <linux/types.h>
#include <linux/device.h>
#include <linux/input/cyttsp.h>
#include <linux/regulator/consumer.h>

#define CY_NUM_RETRY 16 /* max number of retries for read ops */
Expand Down
2 changes: 2 additions & 0 deletions drivers/input/touchscreen/cyttsp_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <linux/i2c.h>
#include <linux/input.h>

#define CY_I2C_NAME "cyttsp-i2c"

#define CY_I2C_DATA_SIZE 128

static const struct cyttsp_bus_ops cyttsp_i2c_bus_ops = {
Expand Down
2 changes: 2 additions & 0 deletions drivers/input/touchscreen/cyttsp_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <linux/input.h>
#include <linux/spi/spi.h>

#define CY_SPI_NAME "cyttsp-spi"

#define CY_SPI_WR_OP 0x00 /* r/~w */
#define CY_SPI_RD_OP 0x01
#define CY_SPI_CMD_BYTES 4
Expand Down
29 changes: 0 additions & 29 deletions include/linux/input/cyttsp.h

This file was deleted.

0 comments on commit d27ac0f

Please sign in to comment.