On 06.08.19 19:12, Javier Martinez Canillas wrote:
Right, we could add a macro for that. Although it should probably be called I2C_OF_MODULE_DEVICE_TABLE() or something like that since is specific to OF.
At that point it should be completely noop when OF is disabled, so we also can get rid of many ifdef's. I've got some patch somewhere for introducing a MODULE_OF_TABLE() macro as replacement for many MODULE_DEVICE_TABLE(of, ...) cases, which noops when CONFIG_OF is disabled. (and similar ones for other table types). by the way: haven't followed whole discussion, just picked up some proposed table changes ... does that require userland upgrades ? --mtx -- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@xxxxxxxxx -- +49-151-27565287