The patch number 8013 was added via Antti Palosaari <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        [EMAIL PROTECTED]

------

From: Antti Palosaari  <[EMAIL PROTECTED]>
gl861: remove useless identify_state


- remove useless identify_state - device is always warm

Signed-off-by: Antti Palosaari <[EMAIL PROTECTED]>


---

 linux/drivers/media/dvb/dvb-usb/gl861.c |   27 ++++++++----------------
 1 file changed, 9 insertions(+), 18 deletions(-)

diff -r 433bc653c3c1 -r d37fc5b42428 linux/drivers/media/dvb/dvb-usb/gl861.c
--- a/linux/drivers/media/dvb/dvb-usb/gl861.c   Thu May 29 00:55:06 2008 +0300
+++ b/linux/drivers/media/dvb/dvb-usb/gl861.c   Thu May 29 01:04:12 2008 +0300
@@ -94,16 +94,6 @@ static struct i2c_algorithm gl861_i2c_al
 };
 
 /* Callbacks for DVB USB */
-static int gl861_identify_state(struct usb_device *udev,
-                               struct dvb_usb_device_properties *props,
-                               struct dvb_usb_device_description **desc,
-                               int *cold)
-{
-       *cold = 0;
-
-       return 0;
-}
-
 static struct zl10353_config gl861_zl10353_config = {
        .demod_address = 0x0f,
        .no_tuner = 1,
@@ -174,7 +164,6 @@ static struct dvb_usb_device_properties 
 
        .size_of_priv     = 0,
 
-       .identify_state   = gl861_identify_state,
        .num_adapters = 1,
        .adapter = {{
 
@@ -196,13 +185,15 @@ static struct dvb_usb_device_properties 
 
        .num_device_descs = 2,
        .devices = {
-               {   "MSI Mega Sky 55801 DVB-T USB2.0",
-                       { &gl861_table[0], NULL },
-                       { NULL },
-               },
-               {   "A-LINK DTU DVB-T USB2.0",
-                       { &gl861_table[1], NULL },
-                       { NULL },
+               {
+                       .name = "MSI Mega Sky 55801 DVB-T USB2.0",
+                       .cold_ids = { NULL },
+                       .warm_ids = { &gl861_table[0], NULL },
+               },
+               {
+                       .name = "A-LINK DTU DVB-T USB2.0",
+                       .cold_ids = { NULL },
+                       .warm_ids = { &gl861_table[1], NULL },
                },
        }
 };


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d37fc5b424289dc816e49a5ec57eaa68a06666e6

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to