Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
input
/
touchscreen
/
tsc2005.c
diff --git
a/kernel/drivers/input/touchscreen/tsc2005.c
b/kernel/drivers/input/touchscreen/tsc2005.c
index
b9f593d
..
f2c5f0e
100644
(file)
--- a/
kernel/drivers/input/touchscreen/tsc2005.c
+++ b/
kernel/drivers/input/touchscreen/tsc2005.c
@@
-24,6
+24,11
@@
#include <linux/regmap.h>
#include "tsc200x-core.h"
#include <linux/regmap.h>
#include "tsc200x-core.h"
+static const struct input_id tsc2005_input_id = {
+ .bustype = BUS_SPI,
+ .product = 2005,
+};
+
static int tsc2005_cmd(struct device *dev, u8 cmd)
{
u8 tx = TSC200X_CMD | TSC200X_CMD_12BIT | cmd;
static int tsc2005_cmd(struct device *dev, u8 cmd)
{
u8 tx = TSC200X_CMD | TSC200X_CMD_12BIT | cmd;
@@
-62,7
+67,7
@@
static int tsc2005_probe(struct spi_device *spi)
if (error)
return error;
if (error)
return error;
- return tsc200x_probe(&spi->dev, spi->irq,
BUS_SPI
,
+ return tsc200x_probe(&spi->dev, spi->irq,
&tsc2005_input_id
,
devm_regmap_init_spi(spi, &tsc200x_regmap_config),
tsc2005_cmd);
}
devm_regmap_init_spi(spi, &tsc200x_regmap_config),
tsc2005_cmd);
}