30 Sep, 2020
2 commits
-
Port the gpio-hammer tool to the latest GPIO uAPI.
Signed-off-by: Kent Gibson
Reviewed-by: Andy Shevchenko
Signed-off-by: Bartosz Golaszewski -
Rename nlines to num_lines to be consistent with other usage for fields
describing the number of entries in an array.Signed-off-by: Kent Gibson
Reviewed-by: Andy Shevchenko
Signed-off-by: Bartosz Golaszewski
25 Mar, 2020
3 commits
-
"retain good changes" means that I left the help string split up instead
of having this weird thing where it tries to merge together the last three
lines and it looks **really** badSigned-off-by: Gabriel Ravier
Signed-off-by: Bartosz Golaszewski -
There is a spelling mistake in an error message. Fix it.
Signed-off-by: Colin Ian King
Signed-off-by: Bartosz Golaszewski -
If '-o' was used more than 64 times in a single invocation of gpio-hammer,
this could lead to an overflow of the 'lines' array. This commit fixes
this by avoiding the overflow and giving a proper diagnostic back to the
userSigned-off-by: Gabriel Ravier
Signed-off-by: Bartosz Golaszewski
19 Jun, 2019
1 commit
-
Based on 2 normalized pattern(s):
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 foundationthis 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 #extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 4122 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Enrico Weigelt
Reviewed-by: Kate Stewart
Reviewed-by: Allison Randal
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
Signed-off-by: Greg Kroah-Hartman
26 Jan, 2017
1 commit
-
There are no gpio-nalils, so fix label accordingly.
Signed-off-by: Uwe Kleine-König
Signed-off-by: Linus Walleij
24 Oct, 2016
1 commit
-
Signed-off-by: Bamvor Jian Zhang
Signed-off-by: Linus Walleij
15 Jun, 2016
1 commit
-
The gpio-hammer is used from userspace as an example of how
to retrieve a GPIO handle for one or several GPIO lines and
hammer the outputs from low to high and back again. It will
pulse the selected lines once per second for a specified
number of times or indefinitely if no loop count is
supplied.Example output:
$ gpio-hammer -n gpiochip0 -o5 -o6 -o7
Hammer lines [5, 6, 7] on gpiochip0, initial states: [1, 1, 1]
[-] [5: 0, 6: 0, 7: 0]Tested-by: Michael Welling
Signed-off-by: Linus Walleij