From 92d39bed40db683f5949b1bd4338c13d16f4f6dc Mon Sep 17 00:00:00 2001 From: Holger Waechtler Date: Wed, 1 Dec 2004 21:43:58 +0000 Subject: paranoia cosmetics --- linux/drivers/media/dvb/cinergyT2/cinergyT2.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c index 3d254cd19..7074dc469 100644 --- a/linux/drivers/media/dvb/cinergyT2/cinergyT2.c +++ b/linux/drivers/media/dvb/cinergyT2/cinergyT2.c @@ -203,8 +203,8 @@ static const uint32_t rc_keys [] = { }; static int cinergyt2_command (struct cinergyt2 *cinergyt2, - char *send_buf, int send_buf_len, - char *rec_buf, int rec_buf_len) + char *send_buf, int send_buf_len, + char *recv_buf, int recv_buf_len) { int actual_len; char dummy; @@ -216,11 +216,11 @@ static int cinergyt2_command (struct cinergyt2 *cinergyt2, if (ret) dprintk(1, "usb_bulk_msg (send) failed, err %i\n", ret); - if (!rec_buf) - rec_buf = &dummy; + if (!recv_buf) + recv_buf = &dummy; ret = usb_bulk_msg(cinergyt2->udev, usb_rcvbulkpipe(cinergyt2->udev, 1), - rec_buf, rec_buf_len, &actual_len, HZ); + recv_buf, recv_buf_len, &actual_len, HZ); if (ret) dprintk(1, "usb_bulk_msg (read) failed, err %i\n", ret); @@ -772,6 +772,7 @@ static int cinergyt2_probe (struct usb_interface *intf, INIT_WORK(&cinergyt2->query_work, cinergyt2_query, cinergyt2); cinergyt2->udev = interface_to_usbdev(intf); + cinergyt2->param.cmd = CINERGYT2_EP1_SET_TUNER_PARAMETERS; if (cinergyt2_alloc_stream_urbs (cinergyt2) < 0) { dprintk(1, "unable to allocate stream urbs\n"); -- cgit v1.2.3