@@ -1293,7 +1293,7 @@ So say that your driver is fetching its resources like this:
struct gpio_desc *gpio;
pinctrl = devm_pinctrl_get_select_default(&dev);
- gpio = devm_gpiod_get(&dev, "foo");
+ gpio = devm_gpiod_get(&dev, "foo", GPIOD_ASIS);
Here we first request a certain pin state and then request GPIO "foo" to be
used. If you're using the subsystems orthogonally like this, you should
@@ -416,11 +416,11 @@ a code like this::
struct gpio_desc *irq_desc, *power_desc;
- irq_desc = gpiod_get(dev, "irq");
+ irq_desc = gpiod_get(dev, "irq", GPIOD_IN);
if (IS_ERR(irq_desc))
/* handle error */
- power_desc = gpiod_get(dev, "power");
+ power_desc = gpiod_get(dev, "power", GPIOD_IN);
if (IS_ERR(power_desc))
/* handle error */
in 39b2bbe3d715 (gpio: add flags argument to gpiod_get*() functions) a third argument was added to the function, apply that to examples found in the tree with a simple regex: gpiod_get\([^(,]*,[^(,]*\) Signed-off-by: Marco Sirabella <marco@sirabella.org> --- Documentation/driver-api/pin-control.rst | 2 +- Documentation/firmware-guide/acpi/enumeration.rst | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)