Use Protocol type for USB interface protocol.

This commit is contained in:
Sebastian Zagrodzki
2017-04-09 18:42:04 +02:00
parent d3428d9b35
commit f91d53931a
7 changed files with 20 additions and 11 deletions

View File

@@ -58,7 +58,7 @@ func Describe(val interface{}) string {
func Classify(val interface{}) string {
var (
class, sub usb.Class
proto uint8
proto usb.Protocol
)
switch val := val.(type) {
case *usb.Descriptor: