This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/media-tree.git tree:

Subject: V4L/DVB: tuner: remove obsolete v4l2-i2c-drv.h header
Author:  Hans Verkuil <[email protected]>
Date:    Wed Sep 15 15:36:23 2010 -0300

Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/video/tuner-core.c |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

---

http://git.linuxtv.org/media-tree.git?a=commitdiff;h=fb018a7856bda1c6da3faddcadf58a5c85b1730f

diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index c4dab6c..a3bb9e9 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -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"
@@ -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.
  * ---------------------------------------------------------------------------

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to