diff options
author | Maximilian Weigand <mweigand@mweigand.net> | 2023-05-01 17:13:25 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2023-05-01 17:29:26 -0700 |
commit | 14d55bc3606b17765d39210c012e7782ee423d84 (patch) | |
tree | a1c281819fb683ab29d3ffee22206e261e7629d2 /drivers/input | |
parent | d09dbc7a018c4d479d7ab0d3b4f6a3211b110923 (diff) | |
download | linux-14d55bc3606b17765d39210c012e7782ee423d84.tar.gz linux-14d55bc3606b17765d39210c012e7782ee423d84.tar.bz2 linux-14d55bc3606b17765d39210c012e7782ee423d84.zip |
Input: cyttsp5 - remove unused code
The removed lines are remnants of the vendor driver and are not used in
the upstream driver.
Signed-off-by: Maximilian Weigand <mweigand@mweigand.net>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20230501113010.891786-3-mweigand@mweigand.net
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/cyttsp5.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/touchscreen/cyttsp5.c b/drivers/input/touchscreen/cyttsp5.c index 16caffa35dd9..308061e9a830 100644 --- a/drivers/input/touchscreen/cyttsp5.c +++ b/drivers/input/touchscreen/cyttsp5.c @@ -600,12 +600,7 @@ static int cyttsp5_get_hid_descriptor(struct cyttsp5 *ts, struct cyttsp5_hid_desc *desc) { struct device *dev = ts->dev; - __le16 hid_desc_register = cpu_to_le16(HID_DESC_REG); int rc; - u8 cmd[2]; - - /* Set HID descriptor register */ - memcpy(cmd, &hid_desc_register, sizeof(hid_desc_register)); rc = cyttsp5_write(ts, HID_DESC_REG, NULL, 0); if (rc) { |