Commit 81dd500b authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Bartosz Golaszewski

gpio: mockup: Adjust documentation to the code

First of all one of the parameter missed 'mockup' in its name,
Second, the semantics of the integer pairs depends on the sign
of the base (the first value in the pair).

Update documentation to reflect the real code behaviour.

Fixes: 2fd1abe9 ("Documentation: gpio: add documentation for gpio-mockup")
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
parent e5391a02
...@@ -17,17 +17,18 @@ module. ...@@ -17,17 +17,18 @@ module.
gpio_mockup_ranges gpio_mockup_ranges
This parameter takes an argument in the form of an array of integer This parameter takes an argument in the form of an array of integer
pairs. Each pair defines the base GPIO number (if any) and the number pairs. Each pair defines the base GPIO number (non-negative integer)
of lines exposed by the chip. If the base GPIO is -1, the gpiolib and the first number after the last of this chip. If the base GPIO
will assign it automatically. is -1, the gpiolib will assign it automatically. while the following
parameter is the number of lines exposed by the chip.
Example: gpio_mockup_ranges=-1,8,-1,16,405,4 Example: gpio_mockup_ranges=-1,8,-1,16,405,409
The line above creates three chips. The first one will expose 8 lines, The line above creates three chips. The first one will expose 8 lines,
the second 16 and the third 4. The base GPIO for the third chip is set the second 16 and the third 4. The base GPIO for the third chip is set
to 405 while for two first chips it will be assigned automatically. to 405 while for two first chips it will be assigned automatically.
gpio_named_lines gpio_mockup_named_lines
This parameter doesn't take any arguments. It lets the driver know that This parameter doesn't take any arguments. It lets the driver know that
GPIO lines exposed by it should be named. GPIO lines exposed by it should be named.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment