aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2010-09-15 14:36:23 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-20 23:06:02 -0400
commit02a2098adbe6c1053cbcd81ecb9422f4502da925 (patch)
treea3dc8d791bec6c5c167b8021d6cc2b08c6b6fcaf /drivers/media/video/tuner-core.c
parent8e71ff0a48e22e06dfedffb6386cb5e519810013 (diff)
V4L/DVB: tuner: remove obsolete v4l2-i2c-drv.h header
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c33
1 files changed, 24 insertions, 9 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index c4dab6cfd948..a3bb9e90f1dd 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -20,7 +20,6 @@
20#include <media/tuner-types.h> 20#include <media/tuner-types.h>
21#include <media/v4l2-device.h> 21#include <media/v4l2-device.h>
22#include <media/v4l2-ioctl.h> 22#include <media/v4l2-ioctl.h>
23#include <media/v4l2-i2c-drv.h>
24#include "mt20xx.h" 23#include "mt20xx.h"
25#include "tda8290.h" 24#include "tda8290.h"
26#include "tea5761.h" 25#include "tea5761.h"
@@ -1176,16 +1175,32 @@ static const struct i2c_device_id tuner_id[] = {
1176}; 1175};
1177MODULE_DEVICE_TABLE(i2c, tuner_id); 1176MODULE_DEVICE_TABLE(i2c, tuner_id);
1178 1177
1179static struct v4l2_i2c_driver_data v4l2_i2c_data = { 1178static struct i2c_driver tuner_driver = {
1180 .name = "tuner", 1179 .driver = {
1181 .probe = tuner_probe, 1180 .owner = THIS_MODULE,
1182 .remove = tuner_remove, 1181 .name = "tuner",
1183 .command = tuner_command, 1182 },
1184 .suspend = tuner_suspend, 1183 .probe = tuner_probe,
1185 .resume = tuner_resume, 1184 .remove = tuner_remove,
1186 .id_table = tuner_id, 1185 .command = tuner_command,
1186 .suspend = tuner_suspend,
1187 .resume = tuner_resume,
1188 .id_table = tuner_id,
1187}; 1189};
1188 1190
1191static __init int init_tuner(void)
1192{
1193 return i2c_add_driver(&tuner_driver);
1194}
1195
1196static __exit void exit_tuner(void)
1197{
1198 i2c_del_driver(&tuner_driver);
1199}
1200
1201module_init(init_tuner);
1202module_exit(exit_tuner);
1203
1189/* 1204/*
1190 * Overrides for Emacs so that we follow Linus's tabbing style. 1205 * Overrides for Emacs so that we follow Linus's tabbing style.
1191 * --------------------------------------------------------------------------- 1206 * ---------------------------------------------------------------------------