diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-09-04 07:31:45 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-12-14 08:24:33 -0500 |
commit | 21abf103818a4735e80fb0ab03934bed8ae9a028 (patch) | |
tree | 39dcd84b5aff1baa384586280ead998356f6aa48 /drivers/memory | |
parent | 67566ae474e628c0077163d1e20d09d3e33b0ae3 (diff) |
gpio: Pass a flag to gpiochip_request_own_desc()
Before things go out of hand, make it possible to pass
flags when requesting "own" descriptors from a gpio_chip.
This is necessary if the chip wants to request a GPIO with
active low semantics, for example.
Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Roger Quadros <rogerq@ti.com>
Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/memory')
-rw-r--r-- | drivers/memory/omap-gpmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/memory/omap-gpmc.c b/drivers/memory/omap-gpmc.c index c215287e80cf..b9b4f7058b05 100644 --- a/drivers/memory/omap-gpmc.c +++ b/drivers/memory/omap-gpmc.c | |||
@@ -2170,7 +2170,8 @@ static int gpmc_probe_generic_child(struct platform_device *pdev, | |||
2170 | unsigned int wait_pin = gpmc_s.wait_pin; | 2170 | unsigned int wait_pin = gpmc_s.wait_pin; |
2171 | 2171 | ||
2172 | waitpin_desc = gpiochip_request_own_desc(&gpmc->gpio_chip, | 2172 | waitpin_desc = gpiochip_request_own_desc(&gpmc->gpio_chip, |
2173 | wait_pin, "WAITPIN"); | 2173 | wait_pin, "WAITPIN", |
2174 | 0); | ||
2174 | if (IS_ERR(waitpin_desc)) { | 2175 | if (IS_ERR(waitpin_desc)) { |
2175 | dev_err(&pdev->dev, "invalid wait-pin: %d\n", wait_pin); | 2176 | dev_err(&pdev->dev, "invalid wait-pin: %d\n", wait_pin); |
2176 | ret = PTR_ERR(waitpin_desc); | 2177 | ret = PTR_ERR(waitpin_desc); |