]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - include/media/v4l2-common.h
V4L/DVB (6451): v4l2: add support for bus-based I2C drivers
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 12 Sep 2007 11:32:50 +0000 (08:32 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 25 Jan 2008 21:01:16 +0000 (19:01 -0200)
commit8ffbc6559493c64d6194c92d856196fdaeb8a5fb
treeb279073efa70f56cf6f0614a6a96374464e492ec
parent5ef4730d1bfe5be71ce54d927c510ad5da968854
V4L/DVB (6451): v4l2: add support for bus-based I2C drivers

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: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/v4l2-common.c
include/media/v4l2-common.h
include/media/v4l2-i2c-drv-legacy.h [new file with mode: 0644]
include/media/v4l2-i2c-drv.h [new file with mode: 0644]