[PATCH 1/4] TM6000: Don't use deprecated i2c adapter fields

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i2c_adapter fields id and class are deprecated for media drivers and
shouldn't be used for a new driver. As far as I can see, the values
were never used anyway.

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Cc: Michel Ludwig <michel.ludwig@xxxxxxxxx>
Cc: Stefan Ringel <stefan.ringel@xxxxxxxx>
---
 drivers/staging/tm6000/tm6000-i2c.c |    4 ----
 1 file changed, 4 deletions(-)

--- linux-2.6.36-rc7.orig/drivers/staging/tm6000/tm6000-i2c.c	2010-09-21 11:07:29.000000000 +0200
+++ linux-2.6.36-rc7/drivers/staging/tm6000/tm6000-i2c.c	2010-10-13 09:56:21.000000000 +0200
@@ -32,8 +32,6 @@
 #include "tuner-xc2028.h"
 
 
-/*FIXME: Hack to avoid needing to patch i2c-id.h */
-#define I2C_HW_B_TM6000 I2C_HW_B_EM28XX
 /* ----------------------------------------------------------- */
 
 static unsigned int i2c_debug = 0;
@@ -322,9 +320,7 @@ static struct i2c_algorithm tm6000_algo
 
 static struct i2c_adapter tm6000_adap_template = {
 	.owner = THIS_MODULE,
-	.class = I2C_CLASS_TV_ANALOG | I2C_CLASS_TV_DIGITAL,
 	.name = "tm6000",
-	.id = I2C_HW_B_TM6000,
 	.algo = &tm6000_algo,
 };
 


-- 
Jean Delvare
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux