• Hans Verkuil's avatar
    V4L/DVB (6451): v4l2: add support for bus-based I2C drivers · 8ffbc655
    Hans Verkuil authored
    Two new headers were added: one for I2C drivers that are only used
    by V4L2 drivers converted to the new bus-based I2C API, and one that
    can be used by both converted and unconverted drivers (at the expense of
    some additional overhead).
    
    To support the legacy I2C API a helper function was added to v4l2-common.c.
    
    These headers take care of all the 'boilerplate' code that all V4L2 I2C drivers
    have in common and will automatically support the bus-based I2C API introduced
    in kernel 2.6.22.
    Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
    8ffbc655
v4l2-i2c-drv.h 2.07 KB