[media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg()
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 8 Jan 2011 10:08:02 +0000 (07:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:30 +0000 (11:45 -0200)
commit3c7c9370fb645f4713e0fbbe69425d8db9b47a13
treef7a0580c92bd37826f82aa87052b180addb25e4e
parentecb71d262b0323981e07ce415da9b7adc917990a
[media] v4l2-subdev: remove core.s_config and v4l2_i2c_new_subdev_cfg()

The core.s_config op was meant for legacy drivers that needed to work with old
pre-2.6.26 kernels. This is no longer relevant. Unfortunately, this op was
incorrectly called from several drivers.

Replace those occurences with proper i2c_board_info structs and call
v4l2_i2c_new_subdev_board.

After these changes v4l2_i2c_new_subdev_cfg() was no longer used, so remove
that function as well.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
12 files changed:
drivers/media/video/cafe_ccic.c
drivers/media/video/cx25840/cx25840-core.c
drivers/media/video/em28xx/em28xx-cards.c
drivers/media/video/ivtv/ivtv-i2c.c
drivers/media/video/mt9v011.c
drivers/media/video/mt9v011.h [deleted file]
drivers/media/video/ov7670.c
drivers/media/video/sr030pc30.c
drivers/media/video/v4l2-common.c
include/media/mt9v011.h [new file with mode: 0644]
include/media/v4l2-common.h
include/media/v4l2-subdev.h