Re: question about SoC Camera driver (Micron)
- Date: Tue, 13 May 2008 11:31:15 +0300
- From: Darius <augulis.darius@xxxxxxxxx>
- Subject: Re: question about SoC Camera driver (Micron)
Guennadi Liakhovetski wrote:
On Mon, 12 May 2008, Darius wrote:
I have question regarding both camera drivers for mt9v022 and mt9m001.
How does attach these drivers to i2c adapter? In i2c_driver structure there
are neither .attach_adapter nor .detach_client members. So, how does these
drivers comunicate via i2c bus? Have I something missed...?
They are, so called, new style i2c drivers. They use .probe and .remove
members, see source code for details.
Thanks
Guennadi
---
Guennadi Liakhovetski
Now I see how it works. I2C devices should be created before driver
loading. There was my mistake, and driver does not call probe()
function. Maybe would be better to create I2C devices by driver itself,
not by the board specific config code? Now sensor driver is useless
itself, without board specific configuration... Would be correct to do so?
Thanks,
Darius.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list