diff options
author | thompsa <thompsa@FreeBSD.org> | 2010-09-02 04:39:45 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2010-09-02 04:39:45 +0000 |
commit | ea2550164af12c5e31d3cf8e71e69510dcca1745 (patch) | |
tree | 13b85407a9735818be448bbab9e3aa5985e4eae3 /sys/dev/usb/serial/ubser.c | |
parent | e26b2a25130f1f1eb7afa980b81902526d6760b1 (diff) | |
download | FreeBSD-src-ea2550164af12c5e31d3cf8e71e69510dcca1745.zip FreeBSD-src-ea2550164af12c5e31d3cf8e71e69510dcca1745.tar.gz |
Reduce the need to accesss struct usb_device by providing functions to access
the product, manufacturer and serial strings.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'sys/dev/usb/serial/ubser.c')
-rw-r--r-- | sys/dev/usb/serial/ubser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/serial/ubser.c b/sys/dev/usb/serial/ubser.c index be332c3..7119177 100644 --- a/sys/dev/usb/serial/ubser.c +++ b/sys/dev/usb/serial/ubser.c @@ -104,7 +104,6 @@ __FBSDID("$FreeBSD$"); #define USB_DEBUG_VAR ubser_debug #include <dev/usb/usb_debug.h> #include <dev/usb/usb_process.h> -#include <dev/usb/usb_device.h> #include <dev/usb/serial/usb_serial.h> @@ -226,7 +225,7 @@ ubser_probe(device_t dev) return (ENXIO); } /* check if this is a BWCT vendor specific ubser interface */ - if ((strcmp(uaa->device->manufacturer, "BWCT") == 0) && + if ((strcmp(usb_get_manufacturer(uaa->device), "BWCT") == 0) && (uaa->info.bInterfaceClass == 0xff) && (uaa->info.bInterfaceSubClass == 0x00)) return (0); |