I have two cameras attached to my linux system. The cameras are controlled via I2C. The device driver for a single camera is based on the i2c-core
device driver. I want to switch between the two cameras. Therefore, I want to change the I2C address on the fly to control one or the other camera.
Is this reasonable? If yes, is there a function, which does that or is it necessary to detach and attach the client with i2c_detach_client
and i2c_attach_client
, respsectively?
Thanks for any advice, Stefan