0

I have an IIO driver for my ambient light sensor. The driver code makes use of MODULE_DEVICE_TABLE macro with the first argument as "i2c" and once as "of". AFAIK, MODULE_DEVICE_TABLE macro is used primarily in USB drivers to enable hot-plugging.

Could anyone please explain to me what does this macro do and what do "of" and "i2c" paramters stand for ?

Khilav
  • 91
  • 11
  • 1
    Dupliacte of https://stackoverflow.com/questions/22901282/hard-time-in-understanding-module-device-tableusb-id-table-usage ? – KamilCuk Jun 26 '18 at 11:34
  • Possible duplicate of [Hard time in understanding MODULE\_DEVICE\_TABLE(usb, id\_table) usage](https://stackoverflow.com/questions/22901282/hard-time-in-understanding-module-device-tableusb-id-table-usage) – 0andriy Jun 30 '18 at 00:59

0 Answers0