From 339c469b21feb6ecbb41571f897c5bedf0b6278a Mon Sep 17 00:00:00 2001 From: Bjørn Mork Date: Mon, 18 Dec 2017 14:20:39 +0100 Subject: foo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Bjørn Mork --- convert-modeswitch.pl | 4 ++-- 1 file 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 = [ -- cgit v1.2.3