From 5fef64fd7879d9d82d248f10f3ca078613ffa2ab Mon Sep 17 00:00:00 2001 From: Kyle Lemons Date: Tue, 27 Mar 2012 19:40:32 -0700 Subject: [PATCH] gofmt --- usb/descriptor.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/usb/descriptor.go b/usb/descriptor.go index 1de4ed0..4a196b7 100644 --- a/usb/descriptor.go +++ b/usb/descriptor.go @@ -10,12 +10,12 @@ type Descriptor struct { Address uint8 // The address of the device on the bus // Version information - Spec BCD // USB Specification Release Number + Spec BCD // USB Specification Release Number Device BCD // The device version // Product information - Vendor ID // The Vendor identifer - Product ID // The Product identifier + Vendor ID // The Vendor identifer + Product ID // The Product identifier // Protocol information Class uint8 // The class of this device @@ -44,15 +44,15 @@ func newDescriptor(dev *C.libusb_device) (*Descriptor, error) { } return &Descriptor{ - Bus: uint8(C.libusb_get_bus_number(dev)), - Address: uint8(C.libusb_get_device_address(dev)), - Spec: BCD(desc.bcdUSB), - Device: BCD(desc.bcdDevice), - Vendor: ID(desc.idVendor), - Product: ID(desc.idProduct), - Class: uint8(desc.bDeviceClass), - SubClass: uint8(desc.bDeviceSubClass), - Protocol: uint8(desc.bDeviceProtocol), - Configs: cfgs, + Bus: uint8(C.libusb_get_bus_number(dev)), + Address: uint8(C.libusb_get_device_address(dev)), + Spec: BCD(desc.bcdUSB), + Device: BCD(desc.bcdDevice), + Vendor: ID(desc.idVendor), + Product: ID(desc.idProduct), + Class: uint8(desc.bDeviceClass), + SubClass: uint8(desc.bDeviceSubClass), + Protocol: uint8(desc.bDeviceProtocol), + Configs: cfgs, }, nil }