Skip to content

Commit 9271cda

Browse files
committed
Input: ads7846 - set input device bus type and product ID
Set input device's bus type as BUS_SPI and use model as product ID. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 872e57a commit 9271cda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/input/touchscreen/ads7846.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1304,6 +1304,9 @@ static int ads7846_probe(struct spi_device *spi)
13041304
input_dev->name = ts->name;
13051305
input_dev->phys = ts->phys;
13061306

1307+
input_dev->id.bustype = BUS_SPI;
1308+
input_dev->id.product = pdata->model;
1309+
13071310
input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
13081311
input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
13091312
input_set_abs_params(input_dev, ABS_X,

0 commit comments

Comments
 (0)