I have 2 Linux kernel modules that both of them need to access the same device through i2c and I am trying to figure out how it is going to work.
The way I see it is that I have come up with anther module/driver to act as a hub to access the device through i2c and export functions to other module/drivers.
If you know better ways to do it, please share. Or pointing to me the existing code for an example.
Thanks