summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-pisosr.c
Commit message (Collapse)AuthorAgeFilesLines
* gpio: pisosr: Use gpiod_set_value_cansleep in pisosr_gpio_refresh()Axel Lin2016-02-251-2/+2
| | | | | | | | | This driver has .can_sleep flag set. So the pisosr_gpio_get() can be called from contexts that can sleep. Thus use the cansleep() variant in pisosr_gpio_refresh(). Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: pisosr: Use devm_gpiod_get_optional for gpio->load_gpioAxel Lin2016-02-251-7/+4
| | | | | | | | gpio->load_gpio is optional, so use devm_gpiod_get_optional instead. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: pisosr: add missing unlockSudip Mukherjee2016-02-191-3/+1
| | | | | | | | If spi_read() fails then we just returned but we missed unlocking the mutex. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* gpio: Add driver for SPI serializersAndrew F. Davis2016-02-101-0/+188
Add generic parallel-in/serial-out shift register GPIO driver. This includes SPI compatible devices like SN74165 serial-out shift registers and the SN65HVS88x series of industrial serializers that can be read over the SPI bus and used for GPI (General Purpose Input). Signed-off-by: Andrew F. Davis <afd@ti.com> Tested-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
OpenPOWER on IntegriCloud