On Saturday 28 February 2009 23:18:54 William M. Brack wrote: > When writing a new driver, which existing driver would be a good model > to use for handing the i2c bus? Hi Bill, I recommend reading Documents/video4linux/v4l2-framework.txt. It's not clear from your question whether you want an example driver for an i2c device, or an example for how to use i2c devices in an PCI or USB driver. A simple, but decent example source for the first would be wm8739.c and for the second we have saa7134 or cx18. It's a bit in flux at the moment since we are moving all drivers over to the v4l2_device/v4l2_subdev structure, but some still use the old model. Regards, Hans -- Hans Verkuil - video4linux developer - sponsored by TANDBERG -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html