Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66afb5b5 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: aircable.c: remove dbg() usage



dbg() is a usb-serial specific macro.  This patch converts
the aircable.c driver to use dev_dbg() instead to tie into the
dynamic debug infrastructure.

CC: Paul Gortmaker <paul.gortmaker@windriver.com>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6971113e
Loading
Loading
Loading
Loading
+4 −3
Original line number Original line Diff line number Diff line
@@ -111,13 +111,14 @@ static int aircable_probe(struct usb_serial *serial,
	for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) {
	for (i = 0; i < iface_desc->desc.bNumEndpoints; i++) {
		endpoint = &iface_desc->endpoint[i].desc;
		endpoint = &iface_desc->endpoint[i].desc;
		if (usb_endpoint_is_bulk_out(endpoint)) {
		if (usb_endpoint_is_bulk_out(endpoint)) {
			dbg("found bulk out on endpoint %d", i);
			dev_dbg(&serial->dev->dev,
				"found bulk out on endpoint %d\n", i);
			++num_bulk_out;
			++num_bulk_out;
		}
		}
	}
	}


	if (num_bulk_out == 0) {
	if (num_bulk_out == 0) {
		dbg("Invalid interface, discarding");
		dev_dbg(&serial->dev->dev, "Invalid interface, discarding\n");
		return -ENODEV;
		return -ENODEV;
	}
	}


@@ -133,7 +134,7 @@ static int aircable_process_packet(struct tty_struct *tty,
		packet += HCI_HEADER_LENGTH;
		packet += HCI_HEADER_LENGTH;
	}
	}
	if (len <= 0) {
	if (len <= 0) {
		dbg("%s - malformed packet", __func__);
		dev_dbg(&port->dev, "%s - malformed packet\n", __func__);
		return 0;
		return 0;
	}
	}