public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Telemaque Ndizihiwe <telendiz@eircom.net>
To: duncan.sands@free.fr
Cc: linux-usb-devel@lists.sourceforge.net, torvalds@osdl.org,
	akpm@osdl.org, trivial@rustcorp.com.au,
	linux-kernel@vger.kernel.org
Subject: [PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c
Date: Sun, 20 Feb 2005 13:41:39 +0000	[thread overview]
Message-ID: <1108906899.3769.14.camel@localhost.localdomain> (raw)

This Patch replaces "(2 * HZ)" with "DATA_TIMEOUT" which is defined as
	#define DATA_TIMEOUT (2 * HZ)
in /drivers/usb/atm/speedtch.c in kernel 2.6.10.

Signed-off-by: Telemaque Ndizihiwe <telendiz@eircom.net>

--- linux-2.6.10/drivers/usb/atm/speedtch.c.orig	2005-02-20
12:44:22.235267848 +0000
+++ linux-2.6.10/drivers/usb/atm/speedtch.c	2005-02-20
12:50:52.205983288 +0000
@@ -494,7 +494,7 @@ static void speedtch_upload_firmware(str
 	/* URB 7 */
 	if (dl_512_first) {	/* some modems need a read before writing the
firmware */
 		ret = usb_bulk_msg(usb_dev, usb_rcvbulkpipe(usb_dev,
SPEEDTCH_ENDPOINT_FIRMWARE),
-				   buffer, 0x200, &actual_length, 2 * HZ);
+				   buffer, 0x200, &actual_length, DATA_TIMEOUT);
 
 		if (ret < 0 && ret != -ETIMEDOUT)
 			dbg("speedtch_upload_firmware: read BLOCK0 from modem failed (%d)!",
ret);




             reply	other threads:[~2005-02-20 13:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-20 13:41 Telemaque Ndizihiwe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-02-23 18:42 [PATCH] Replaces (2 * HZ) with DATA_TIMEOUT in /drivers/usb/atm/speedtch.c Telemaque Ndizihiwe
2005-02-23 18:47 ` Linus Torvalds
2005-02-23 23:32 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1108906899.3769.14.camel@localhost.localdomain \
    --to=telendiz@eircom.net \
    --cc=akpm@osdl.org \
    --cc=duncan.sands@free.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=torvalds@osdl.org \
    --cc=trivial@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox