Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219139
b: refs/heads/master
c: 02a2098
h: refs/heads/master
i:
  219137: da9ea6c
  219135: 0eda1b0
v: v3
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent 1802923 commit e922320
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e71ff0a48e22e06dfedffb6386cb5e519810013
refs/heads/master: 02a2098adbe6c1053cbcd81ecb9422f4502da925
33 changes: 24 additions & 9 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <media/tuner-types.h>
#include <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/v4l2-i2c-drv.h>
#include "mt20xx.h"
#include "tda8290.h"
#include "tea5761.h"
Expand Down Expand Up @@ -1176,16 +1175,32 @@ static const struct i2c_device_id tuner_id[] = {
};
MODULE_DEVICE_TABLE(i2c, tuner_id);

static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.name = "tuner",
.probe = tuner_probe,
.remove = tuner_remove,
.command = tuner_command,
.suspend = tuner_suspend,
.resume = tuner_resume,
.id_table = tuner_id,
static struct i2c_driver tuner_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "tuner",
},
.probe = tuner_probe,
.remove = tuner_remove,
.command = tuner_command,
.suspend = tuner_suspend,
.resume = tuner_resume,
.id_table = tuner_id,
};

static __init int init_tuner(void)
{
return i2c_add_driver(&tuner_driver);
}

static __exit void exit_tuner(void)
{
i2c_del_driver(&tuner_driver);
}

module_init(init_tuner);
module_exit(exit_tuner);

/*
* Overrides for Emacs so that we follow Linus's tabbing style.
* ---------------------------------------------------------------------------
Expand Down

0 comments on commit e922320

Please sign in to comment.