V4L (0999) Some funcions now static and I2C hw code for IR
Hi Mauro,
[As a side note, it looks like there have been some distribution problems with this patchset... I can only see 0/31 (twice) on LKML and 11/31 didn't make it to the lm-sensors list as it was supposed to. I received it twice though.]
Quoted 4 lines
From: Mauro Carvalho Chehab <[email protected]>
- Some funcions are now declared as static
- Added a I2C code for InfraRed.
Unrelated changes, this should have been two separate patches. Also, "I2C driver ID" would better describe what the second change is about than "I2C code".
drivers/media/video/ir-kbd-i2c.c static int ir_probe(struct i2c_adapter * · line 284
Quoted 11 lines
drivers/media/video/ir-kbd-i2c.c +1
-1@@ -278,7 +278,7 @@ static int ir_probe(struct i2c_adapter *static struct i2c_driver driver = { .name ="ir remote kbd driver" , - .id =I2C_DRIVERID_EXP3 ,/* FIXME */ + .id =I2C_DRIVERID_I2C_IR , .flags =I2C_DF_NOTIFY , .attach_adapter = ir_probe, .detach_client = ir_detach,
That's a poor ID name you chose. The second "I2C" is totally redundant, and "IR" is a bit short and could mean about anything. Please change it to I2C_DRIVERID_IRKBD or I2C_DRIVERID_INFRARED or something.
Thanks,
Signature · 1 line
Jean Delvare
Em Qui, 2005-12-01 às 20:11 +0100, Jean Delvare escreveu:
Quoted 6 lines
Hi Mauro,
[As a side note, it looks like there have been some distribution problems with this patchset... I can only see 0/31 (twice) on LKML and 11/31 didn't make it to the lm-sensors list as it was supposed to. I received it twice though.]
In fact, all were sent to lkml... for some unknown reason, my ISP
didn't sent it (or lkml anti-spam rules filtered?). I even tried to send a second time...
Quoted 9 lines
Quoted 5 lines
From: Mauro Carvalho Chehab <[email protected]>
- Some funcions are now declared as static
- Added a I2C code for InfraRed.Unrelated changes, this should have been two separate patches. Also, "I2C driver ID" would better describe what the second change is about than "I2C code".
Ok. I'll do it next time. I tried to consolidate into one due the
ammount of patches we have to send. Up now, we sent more than 250 patches, just v4l updates to 2.6.15.
Quoted 5 lines
Quoted 5 lines
drivers/media/video/ir-kbd-i2c.c +0
-0@@ -278,7 +278,7 @@ static int ir_probe(struct i2c_adapter *
Quoted 11 lines
drivers/media/video/ir-kbd-i2c.c static int ir_probe(struct i2c_adapter * · line 284
Quoted 7 lines
drivers/media/video/ir-kbd-i2c.c +1
-1static struct i2c_driver driver = { .name ="ir remote kbd driver" , - .id =I2C_DRIVERID_EXP3 ,/* FIXME */ + .id =I2C_DRIVERID_I2C_IR , .flags =I2C_DF_NOTIFY , .attach_adapter = ir_probe, .detach_client = ir_detach,That's a poor ID name you chose. The second "I2C" is totally redundant, and "IR" is a bit short and could mean about anything. Please change it to
I2C_DRIVERID_IRKBDorI2C_DRIVERID_INFRAREDor something.
Ok. (We have also other non-i2c ir.. that's why I called it I2C_IR).
I'll prepare a patch for it. I2C_DRIVERID_INFRARED seems a good name.
Quoted 2 lines
Thanks,
Cheers,
Mauro.