Commit 36b52154 authored by Douglas Anderson's avatar Douglas Anderson Committed by Linus Walleij

gpio: Document proper return value for gpio drivers

The legacy defines GPIOF_DIR_XXX are only for consumers. Document the
proper ones.  Also: don't use "_XXX" since that's harder to find with
"git grep".  Just list both of the values.
Signed-off-by: default avatarDouglas Anderson <dianders@chromium.org>
Link: https://lore.kernel.org/r/20200428172322.1.I396f351e364f3c09df7c7606e79abefb8682c092@changeidSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent dc5c1439
...@@ -267,9 +267,9 @@ struct gpio_irq_chip { ...@@ -267,9 +267,9 @@ struct gpio_irq_chip {
* @free: optional hook for chip-specific deactivation, such as * @free: optional hook for chip-specific deactivation, such as
* disabling module power and clock; may sleep * disabling module power and clock; may sleep
* @get_direction: returns direction for signal "offset", 0=out, 1=in, * @get_direction: returns direction for signal "offset", 0=out, 1=in,
* (same as GPIOF_DIR_XXX), or negative error. * (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN),
* It is recommended to always implement this function, even on * or negative error. It is recommended to always implement this
* input-only or output-only gpio chips. * function, even on input-only or output-only gpio chips.
* @direction_input: configures signal "offset" as input, or returns error * @direction_input: configures signal "offset" as input, or returns error
* This can be omitted on input-only or output-only gpio chips. * This can be omitted on input-only or output-only gpio chips.
* @direction_output: configures signal "offset" as output, or returns error * @direction_output: configures signal "offset" as output, or returns error
......
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