aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib.c
Commit message (Collapse)AuthorAgeFilesLines
* gpio: improve error path in gpiolibLinus Walleij2019-07-081-16/+25
| | | | | | | | | | | | | | | | | | | | | | | | At several places the gpiolib will proceed to handle a GPIO descriptor even if it's ->chip member is NULL and no gpiochip is associated. Fix this by checking that both the descriptor cookie *and* the chip pointer are valid. Also bail out earlier with more specific diagnostic messages on missing operations for setting as input/output or debounce. ChangeLog v1->v2: - Also return -EIO on gpiod_set_debounce() with missing operations in the vtable - Fix indentations. Change-Id: I4143419af27ecfe4ec6cfbfc8bd95ddfd9f8daa1 Suggested-by: Alexandre Courbot <acourbot@nvidia.com> Acked-by: Alexandre Courbot <acourbot@nvidia.com> Reviewed-by: Frank Rowand <frank.rowand@sonymobile.com> Cc: Tim Bird <tim.bird@sonymobile.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* 3.10.78 -> 3.10.79Jan Engelmohr2016-08-261-3/+21
|
* 3.10.68 -> 3.10.69Jan Engelmohr2016-08-261-1/+2
|
* 3.10.66 -> 3.10.67Jan Engelmohr2016-08-261-8/+16
|
* first commitMeizu OpenSource2016-08-151-0/+2168