#compdef curvetun # # curvetun.zsh -- zsh completion function for curvetun # # Copyright (C) 2013 Hideo Hattori # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. typeset -A opt_args _interfaces () { _wanted interfaces expl 'network interface' \ _net_interfaces _values "Pseudo-device that captures on all interfaces" "any" } _arguments -s -S \ "(-k --keygen)"{-k,--keygen}"[Generate public/private keypair]" \ "(-x --export)"{-x,--export}"[Export your public data for remote servers]" \ "(-C --dumpc)"{-C,--dumpc}"[Dump parsed clients]" \ "(-S --dumps)"{-S,--dumps}"[Dump parsed servers]" \ "(-D --nofork)"{-D,--nofork}"[Do not daemonize]" \ "(-d --dev)"{-d,--dev}"[Networking tunnel device, e.g. tun0]:device:_interfaces" \ {-v,--version}"[Print version]:" \ {-h,--help}"[Print this help]:" \ "(-s --server -N --no-logging -p --port -t --stun -u --udp -4 --ipv4 -6 --ipv6 -c --client)"{-c,--client}"[Client mode, server alias optional]:client:_gnu_generic" \ "(-c --client -s --server)"{-s,--server}"[Server mode]" \ "(-c --client -N --no-logging)"{-N,--no-logging}"[Disable server logging (for better anonymity)]" \ "(-c --client -p --port)"{-p,--port}"[Port number (mandatory)]:port:_gnu_generic" \ "(-c --client -t --stun)"{-t,--stun}"[Show public IP/Port mapping via STUN]:stun:_gnu_generic" \ "(-c --client -u --udp)"{-u,--udp}"[Use UDP as carrier instead of TCP]" \ "(-c --client -4 --ipv4)"{-4,--ipv4}"[Tunnel devices are IPv4]" \ "(-c --client -6 --ipv6)"{-6,--ipv6}"[Tunnel devices are IPv6 (default: same as carrier protocol)]" \ "*::args:_gnu_generic" 561b2584e1e'>treecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-06-22 09:25:14 +0200
committerThierry Reding <thierry.reding@gmail.com>2016-06-23 18:37:05 +0200
commit33cdcee04be3b4482be97393167e7561b2584e1e (patch)
tree4aa9751b50c199d016d111abbe4bc011f060effa /Documentation
parentcc51846ba81ca179a3be20f6313e3b72531888c1 (diff)
pwm: Fix pwm_apply_args()
Commit 5ec803edcb70 ("pwm: Add core infrastructure to allow atomic updates"), implemented pwm_disable() as a wrapper around pwm_apply_state(), and then, commit ef2bf4997f7d ("pwm: Improve args checking in pwm_apply_state()") added missing checks on the ->period value in pwm_apply_state() to ensure we were not passing inappropriate values to the ->config() or ->apply() methods. The conjunction of these 2 commits led to a case where pwm_disable() was no longer succeeding, thus preventing the polarity setting done in pwm_apply_args(). Set a valid period in pwm_apply_args() to ensure polarity setting won't be rejected. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Suggested-by: Brian Norris <briannorris@chromium.org> Fixes: 5ec803edcb70 ("pwm: Add core infrastructure to allow atomic updates") Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'Documentation')