Question regarding placement of touchscreen driver with USB interface

Started by Łukasz Majewski on Aug 30, 2017

open the first message on its own page

Message details and related content
Dear All,

I would like to ask you for some help regarding placement of a touchscreen driver.

The device has two interfaces -> I2C and USB.

I2C is well supported and used:
https://searchcode.com/codesearch/view/16778586/


On my board the USB is used (1.1).

    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0
      bInterfaceProtocol      2 Mouse
      iInterface              0


It shows up as a mice.

And now I'm puzzled, because there are two places where this driver could be placed:

1. drivers/input/touchscreen/ (and write the driver in a similar way to usbtouchscreen.c)

2. drivers/input/mouse/ (and for example appletouch.c)


Another question is if this USB interface really is a mouse - I personally doubt, since for me it looks like USB being only the "other" transport layer, which "emulates" I2C access to the device (reading/writing a few bytes).



Thanks in advance for support.

-- 
Best regards.

Łukasz Majewski
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help