diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2015-05-13 13:03:21 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-05-14 12:19:48 +0200 |
commit | af6c235d1a5c112964c3029eb0ed4b52c7aa33bf (patch) | |
tree | 393b8dceec3cd64bfae6d60dbb75139adf2a9487 /include/linux/gpio | |
parent | 25e4fe92a20bbffde87500615250f1d54bfb832f (diff) | |
download | op-kernel-dev-af6c235d1a5c112964c3029eb0ed4b52c7aa33bf.zip op-kernel-dev-af6c235d1a5c112964c3029eb0ed4b52c7aa33bf.tar.gz |
gpio: discourage passing base to gpio_chip
Passing a fixed base in struct gpio_chip is done for legacy
systems that cannot handle dynamic allocation. Discourage this
behaviour in the kerneldoc.
Acked-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/gpio')
-rw-r--r-- | include/linux/gpio/driver.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 96a6788..cc7ec12 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -42,8 +42,12 @@ struct seq_file; * @dbg_show: optional routine to show contents in debugfs; default code * will be used when this is omitted, but custom code can show extra * state (such as pullup/pulldown configuration). - * @base: identifies the first GPIO number handled by this chip; or, if - * negative during registration, requests dynamic ID allocation. + * @base: identifies the first GPIO number handled by this chip; + * or, if negative during registration, requests dynamic ID allocation. + * DEPRECATION: providing anything non-negative and nailing the base + * base offset of GPIO chips is deprecated. Please pass -1 as base to + * let gpiolib select the chip base in all possible cases. We want to + * get rid of the static GPIO number space in the long run. * @ngpio: the number of GPIOs handled by this controller; the last GPIO * handled is (base + ngpio - 1). * @desc: array of ngpio descriptors. Private. |