machine/usb: rename 'New()' to 'Port()' to have the API better match the singleton that is actually being returned

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2022-10-16 11:29:16 +02:00
committed by Ron Evans
parent c32490935b
commit 3d7f24e26c
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -63,8 +63,8 @@ func init() {
}
}
// New returns hid-keybord.
func New() *keyboard {
// Port returns the USB hid-keyboard port.
func Port() *keyboard {
return Keyboard
}
+2 -2
View File
@@ -27,8 +27,8 @@ func init() {
}
}
// New returns hid-mouse.
func New() *mouse {
// Port returns the USB hid-mouse port.
func Port() *mouse {
return Mouse
}
+2 -2
View File
@@ -24,8 +24,8 @@ func init() {
}
}
// New returns hid-mouse.
func New() *midi {
// Port returns the USB midi port.
func Port() *midi {
return Midi
}