Question regarding placement of touchscreen driver with USB interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux