fixes removal of normal_i2c_range on V4L
PATCH 1/1 fixes removal of normal_i2c_range on V4L
This patch is necessary to correct I2C detect after normal_i2c_range removal applied by gregkh-i2c-i2c-address_range_removal.patch at -mm series.
Quoted 9 lines · Mauro Carvalho Chehab
This patch is necessary to correct I2C detect after
normal_i2c_rangeremoval applied by gregkh-i2c-i2c-address_range_removal.patch at -mm series.Signed-off-by Mauro Carvalho Chehab <[email protected]>
Now with attachment :-)
drivers/media/video/bt832.c +2 -2
@@ -39,8 +39,8 @@MODULE_LICENSE ("GPL" );/* Addresses to scan */ -static unsigned short normal_i2c[] = {I2C_CLIENT_END }; -static unsigned short normal_i2c_range[] = {I2C_BT832_ALT1 >>1 ,I2C_BT832_ALT2 >>1 ,I2C_CLIENT_END }; +static unsigned short normal_i2c[] = {I2C_BT832_ALT1 >>1 ,I2C_BT832_ALT2 >>1 , +I2C_CLIENT_END };I2C_CLIENT_INSMOD ;/* ---------------------------------------------------------------------- */
drivers/media/video/msp3400.c +0 -1
@@ -147,7 +147,6 @@I2C_MSP3400C_ALT >>1 , I2C_CLIENT_END }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END ,I2C_CLIENT_END };I2C_CLIENT_INSMOD ;/* ----------------------------------------------------------------------- */
drivers/media/video/saa7134/saa6752hs.c +0 -1
@@ -22,7 +22,6 @@/* Addresses to scan */ static unsigned short normal_i2c[] = {0x20 ,I2C_CLIENT_END }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END };I2C_CLIENT_INSMOD ;MODULE_DESCRIPTION ("device driver for saa6752hs MPEG2 encoder" );
drivers/media/video/tda7432.c +0 -1
@@ -74,7 +74,6 @@I2C_TDA7432 >>1 ,I2C_CLIENT_END , }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END ,I2C_CLIENT_END };I2C_CLIENT_INSMOD ;/* Structure of address and subaddresses for the tda7432 */
drivers/media/video/tda9875.c +0 -1
@@ -44,7 +44,6 @@I2C_TDA9875 >>1 , I2C_CLIENT_END }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END };I2C_CLIENT_INSMOD ;/* This is a superset of the TDA9875 */
drivers/media/video/tda9887.c +0 -1
@@ -33,7 +33,6 @@0x96 >>1 ,I2C_CLIENT_END , }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END ,I2C_CLIENT_END };I2C_CLIENT_INSMOD ;/* insmod options */
drivers/media/video/tuner-core.c +4 -8
@@ -26,17 +26,14 @@/* * comment line bellow to return to old behavor, where only one I2C device is supported */ -#define CONFIG_TUNER_MULTI_I2C /**/ #define UNSET (-1U)/* standard i2c insmod options */ static unsigned short normal_i2c[] = {0x4b ,/* tda8290 */ -I2C_CLIENT_END -}; -static unsigned short normal_i2c_range[] = { -0x60 ,0x6f , +0x60 ,0x61 ,0x62 ,0x63 ,0x64 ,0x65 ,0x66 ,0x67 , +0x68 ,0x69 ,0x6a ,0x6b ,0x6c ,0x6d ,0x6e ,0x6f ,I2C_CLIENT_END };I2C_CLIENT_INSMOD ;
@@ -325,9 +322,8 @@static int tuner_probe (struct i2c_adapter *adap) {if (0 != addr) { - normal_i2c[0 ] = addr; - normal_i2c_range[0 ] = addr; - normal_i2c_range[1 ] = addr; + normal_i2c[0 ] = addr; + normal_i2c[1 ] =I2C_CLIENT_END ; } this_adap =0 ;
Somente em linux-2.6.12-rc6-mm1/drivers/media/video: tuner-core.c~ Somente em linux-2.6.12-rc6-mm1/drivers/media/video: tuner-core.c.orig Somente em linux-2.6.12-rc6-mm1/drivers/media/video: tuner-core.c.rej
drivers/media/video/tvaudio.c +0 -1
@@ -148,7 +148,6 @@I2C_TDA9874 >>1 ,I2C_PIC16C54 >>1 , I2C_CLIENT_END }; -static unsigned short normal_i2c_range[2 ] = {I2C_CLIENT_END ,I2C_CLIENT_END };I2C_CLIENT_INSMOD ;static struct i2c_driver driver;
drivers/media/video/tveeprom.c +0 -1
@@ -482,7 +482,6 @@0xa0 >>1 ,I2C_CLIENT_END , }; -static unsigned short normal_i2c_range[] = {I2C_CLIENT_END };I2C_CLIENT_INSMOD ;struct i2c_driver i2c_driver_tveeprom;
Hi Mauro,
Quoted 3 lines
This patch is necessary to correct I2C detect after
normal_i2c_rangeremoval applied by gregkh-i2c-i2c-address_range_removal.patch at -mm series.
No. Check 2.6.12-rc6-mm1, it already has all these changes. You must have messed up somewhere.
Signature · 1 line
Jean Delvare