Re: How to implement i2c map device

2012-04-26 Thread Hans Verkuil
Hi Scott, On Thursday 26 April 2012 11:47:08 Scott Jiang wrote: > Hi Laurent, > > I'm writing a driver for adv7842 video decoder. This chip has 12 i2c > register maps. IO map is fixed to 0x20 and others are configurable. > I plan to use 0x20 as the subdevice addr to call > v4l2_i2c_new_subdev_boa

How to implement i2c map device

2012-04-26 Thread Scott Jiang
Hi Laurent, I'm writing a driver for adv7842 video decoder. This chip has 12 i2c register maps. IO map is fixed to 0x20 and others are configurable. I plan to use 0x20 as the subdevice addr to call v4l2_i2c_new_subdev_board, and call i2c_new_device and i2c_add_driver in i2c_probe to enumerate othe