V4L/DVB (11302): tda9875: remove legacy code for old-style i2c API
tda9875 is no longer used with the old-style i2c API, so I can remove the support for that. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
4705e8c850
commit
a61389134c
1 changed files with 1 additions and 14 deletions
|
@ -28,20 +28,13 @@
|
||||||
#include <linux/i2c.h>
|
#include <linux/i2c.h>
|
||||||
#include <linux/videodev2.h>
|
#include <linux/videodev2.h>
|
||||||
#include <media/v4l2-device.h>
|
#include <media/v4l2-device.h>
|
||||||
#include <media/v4l2-i2c-drv-legacy.h>
|
#include <media/v4l2-i2c-drv.h>
|
||||||
#include <media/i2c-addr.h>
|
#include <media/i2c-addr.h>
|
||||||
|
|
||||||
static int debug; /* insmod parameter */
|
static int debug; /* insmod parameter */
|
||||||
module_param(debug, int, S_IRUGO | S_IWUSR);
|
module_param(debug, int, S_IRUGO | S_IWUSR);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
||||||
/* Addresses to scan */
|
|
||||||
static unsigned short normal_i2c[] = {
|
|
||||||
I2C_ADDR_TDA9875 >> 1,
|
|
||||||
I2C_CLIENT_END
|
|
||||||
};
|
|
||||||
|
|
||||||
I2C_CLIENT_INSMOD;
|
|
||||||
|
|
||||||
/* This is a superset of the TDA9875 */
|
/* This is a superset of the TDA9875 */
|
||||||
struct tda9875 {
|
struct tda9875 {
|
||||||
|
@ -321,11 +314,6 @@ static int tda9875_queryctrl(struct v4l2_subdev *sd, struct v4l2_queryctrl *qc)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tda9875_command(struct i2c_client *client, unsigned cmd, void *arg)
|
|
||||||
{
|
|
||||||
return v4l2_subdev_command(i2c_get_clientdata(client), cmd, arg);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------- */
|
/* ----------------------------------------------------------------------- */
|
||||||
|
|
||||||
static const struct v4l2_subdev_core_ops tda9875_core_ops = {
|
static const struct v4l2_subdev_core_ops tda9875_core_ops = {
|
||||||
|
@ -402,7 +390,6 @@ MODULE_DEVICE_TABLE(i2c, tda9875_id);
|
||||||
|
|
||||||
static struct v4l2_i2c_driver_data v4l2_i2c_data = {
|
static struct v4l2_i2c_driver_data v4l2_i2c_data = {
|
||||||
.name = "tda9875",
|
.name = "tda9875",
|
||||||
.command = tda9875_command,
|
|
||||||
.probe = tda9875_probe,
|
.probe = tda9875_probe,
|
||||||
.remove = tda9875_remove,
|
.remove = tda9875_remove,
|
||||||
.id_table = tda9875_id,
|
.id_table = tda9875_id,
|
||||||
|
|
Loading…
Add table
Reference in a new issue