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 ?