aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/init_vusb.go
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/init_vusb.go')
-rw-r--r--sys/linux/init_vusb.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/linux/init_vusb.go b/sys/linux/init_vusb.go
index 7a61b0942..fc847be41 100644
--- a/sys/linux/init_vusb.go
+++ b/sys/linux/init_vusb.go
@@ -50,11 +50,11 @@ type HidDeviceID struct {
Product uint32
}
-func (arch *arch) generateUsbDeviceDescriptor(g *prog.Gen, typ0 prog.Type, old prog.Arg) (
+func (arch *arch) generateUsbDeviceDescriptor(g *prog.Gen, typ0 prog.Type, dir prog.Dir, old prog.Arg) (
arg prog.Arg, calls []*prog.Call) {
if old == nil {
- arg = g.GenerateSpecialArg(typ0, &calls)
+ arg = g.GenerateSpecialArg(typ0, dir, &calls)
} else {
arg = old
calls = g.MutateArg(arg)
@@ -140,11 +140,11 @@ func randUsbDeviceID(g *prog.Gen) UsbDeviceID {
return id
}
-func (arch *arch) generateUsbHidDeviceDescriptor(g *prog.Gen, typ0 prog.Type, old prog.Arg) (
+func (arch *arch) generateUsbHidDeviceDescriptor(g *prog.Gen, typ0 prog.Type, dir prog.Dir, old prog.Arg) (
arg prog.Arg, calls []*prog.Call) {
if old == nil {
- arg = g.GenerateSpecialArg(typ0, &calls)
+ arg = g.GenerateSpecialArg(typ0, dir, &calls)
} else {
arg = old
calls = g.MutateArg(arg)