summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconvert-modeswitch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert-modeswitch.pl b/convert-modeswitch.pl
index 4ccfed6..b1530bd 100755
--- a/convert-modeswitch.pl
+++ b/convert-modeswitch.pl
@@ -48,7 +48,7 @@ sub add_mode {
sub add_modeval {
return unless ($_[1] && $_[1] =~ /^\d+$/);
- $_[0]->{"Modeval"} = $_[1];
+ $_[0]->{"ModeValue"} = $_[1];
}
my $hex_option = [ undef, \&add_hex ];
@@ -218,7 +218,7 @@ foreach my $devid (sort keys %devices) {
dev_opt($cur->{TargetClass}, "t_class", "int", \$sep);
dev_opt($cur->{DetachStorageOnly}, "detach_storage", "bool", \$sep);
dev_opt($cur->{Mode}, "mode", "string", \$sep);
- dev_opt($cur->{Modeval}, "modeval", "string", \$sep);
+ dev_opt($cur->{ModeValue}, "modeval", "int", \$sep);
dev_opt($cur->{NoDriverLoading}, "no_driver", "bool", \$sep);
dev_opt($cur->{MessageEndpoint}, "msg_endpoint", "int", \$sep);
my $msg = [