summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/nuvoton
Commit message (Collapse)AuthorAgeFilesLines
* pinctrl: nuvoton: check for devm_kasprintf() failureNicholas Mc Guire2018-12-051-0/+3
| | | | | | | | | | | devm_kasprintf() may return NULL on failure of internal allocation thus the assignment to .label is not safe if not checked. On error npcm7xx_gpio_of() returns negative values so -ENOMEM in the (unlikely) failure case of devm_kasprintf() should be fine here. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Fixes: 3b588e43ee5c ("pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driver") Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* pinctrl: nuvoton: modify NPCM7xx pin configuration functionTomer Maimon2018-11-151-10/+3Star
| | | | | | | | | | Modify GPIO direction setting in pin configuration function by using generic GPIO functions to set the GPIO direction instead of direct access to the GPIO direction register. Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> Tested-by: Kun Yi <kunyi@google.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
* pinctrl: nuvoton: add NPCM7xx pinctrl and GPIO driverTomer Maimon2018-08-293-0/+2088
Add Nuvoton BMC NPCM750/730/715/705 Pinmux and GPIO controller driver. Signed-off-by: Tomer Maimon <tmaimon77@gmail.com> [Add back select GPIO_GENERIC] Signed-off-by: Linus Walleij <linus.walleij@linaro.org>