sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/driver-api/gpio/indexmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hPortuguese (Brazilian)}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/pt_BR/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/driver-api/gpio/indexmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(h#General Purpose Input/Output (GPIO)h]h#General Purpose Input/Output (GPIO)}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index.rsthKubh paragraph)}(h Contents:h]h Contents:}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubhcompound)}(hhh]htoctree)}(hhh]h}(h]h ]h"]h$]h&]hdriver-api/gpio/indexentries](Ndriver-api/gpio/introNdriver-api/gpio/using-gpioNdriver-api/gpio/driverNdriver-api/gpio/consumerNdriver-api/gpio/boardNdriver-api/gpio/legacy-boardsNdriver-api/gpio/drivers-on-gpioNdriver-api/gpio/bt8xxgpioNdriver-api/gpio/pca953xe includefiles](hhhhhhhhhemaxdepthKcaptionNglobhidden includehiddennumberedK titlesonly rawentries]uh1hhhhKhhubah}(h]h ]toctree-wrapperah"]h$]h&]uh1hhhhhhhhNubh)}(hhh](h)}(hCoreh]hCore}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlegpio_irq_chip (C struct)c.gpio_irq_chiphNtauh1j#hjhhhNhNubhdesc)}(hhh](hdesc_signature)}(h gpio_irq_chiph]hdesc_signature_line)}(hstruct gpio_irq_chiph](hdesc_sig_keyword)}(hstructh]hstruct}(hjGhhhNhNubah}(h]h ]kah"]h$]h&]uh1jEhjAhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhKubhdesc_sig_space)}(h h]h }(hjYhhhNhNubah}(h]h ]wah"]h$]h&]uh1jWhjAhhhjVhKubh desc_name)}(h gpio_irq_chiph]h desc_sig_name)}(hj=h]h gpio_irq_chip}(hjphhhNhNubah}(h]h ]nah"]h$]h&]uh1jnhjjubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jhhjAhhhjVhKubeh}(h]h ]h"]h$]h&]jj add_permalinkuh1j?sphinx_line_type declaratorhj;hhhjVhKubah}(h]j2ah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j9hjVhKhj6hhubh desc_content)}(hhh]h)}(hGPIO interrupt controllerh]hGPIO interrupt controller}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK0hjhhubah}(h]h ]h"]h$]h&]uh1jhj6hhhjVhKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1j4hhhjhNhNubh container)}(hX**Definition**:: struct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc, unsigned int child_hwirq, unsigned int child_type, unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc, union gpio_irq_fwspec *fwspec, unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); }; **Members** ``chip`` GPIO IRQ chip implementation, provided by GPIO driver. ``domain`` Interrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number. ``fwnode`` Firmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support. ``parent_domain`` If non-NULL, will be set as the parent of this GPIO interrupt controller's IRQ domain to establish a hierarchical interrupt domain. The presence of this will activate the hierarchical interrupt support. ``child_to_parent_hwirq`` This callback translates a child hardware IRQ offset to a parent hardware IRQ offset on a hierarchical interrupt chip. The child hardware IRQs correspond to the GPIO index 0..ngpio-1 (see the ngpio field of struct gpio_chip) and the corresponding parent hardware IRQ and type (such as IRQ_TYPE_*) shall be returned by the driver. The driver can calculate this from an offset or using a lookup table or whatever method is best for this chip. Return 0 on successful translation in the driver. If some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in **valid_mask** and **need_valid_mask** to make these GPIO lines unavailable for translation. ``populate_parent_alloc_arg`` This optional callback allocates and populates the specific struct for the parent's IRQ domain. If this is not specified, then :c:type:`gpiochip_populate_parent_fwspec_twocell` will be used. A four-cell variant named :c:type:`gpiochip_populate_parent_fwspec_fourcell` is also available. ``child_offset_to_irq`` This optional callback is used to translate the child's GPIO line offset on the GPIO chip to an IRQ number for the GPIO to_irq() callback. If this is not specified, then a default callback will be provided that returns the line offset. ``child_irq_domain_ops`` The IRQ domain operations that will be used for this GPIO IRQ chip. If no operations are provided, then default callbacks will be populated to setup the IRQ hierarchy. Some drivers need to supply their own translate function. ``handler`` The IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver. ``default_type`` Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver. ``lock_key`` Per GPIO IRQ chip lockdep class for IRQ lock. ``request_key`` Per GPIO IRQ chip lockdep class for IRQ request. ``parent_handler`` The interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded. ``{unnamed_union}`` anonymous ``parent_handler_data`` If **per_parent_data** is false, **parent_handler_data** is a single pointer used as the data associated with every parent interrupt. ``parent_handler_data_array`` If **per_parent_data** is true, **parent_handler_data_array** is an array of **num_parents** pointers, and is used to associate different data for each parent. This cannot be NULL if **per_parent_data** is true. ``num_parents`` The number of interrupt parents of a GPIO chip. ``parents`` A list of interrupt parents of a GPIO chip. This is owned by the driver, so the core will only reference this list, not modify it. ``map`` A list of interrupt parents for each line of a GPIO chip. ``threaded`` True if set the interrupt handling uses nested threads. ``per_parent_data`` True if parent_handler_data_array describes a **num_parents** sized array to be used as parent data. ``initialized`` Flag to track GPIO chip irq member's initialization. This flag will make sure GPIO chip irq members are not used before they are initialized. ``domain_is_allocated_externally`` True it the irq_domain was allocated outside of gpiolib, in which case gpiolib won't free the irq_domain itself. ``init_hw`` optional routine to initialize hardware before an IRQ chip will be added. This is quite useful when a particular driver wants to clear IRQ related registers in order to avoid undesired events. ``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIO lines are valid interrupts. Sometimes some lines just cannot fire interrupts, and this routine, when defined, is passed a bitmap in "valid_mask" and it will have ngpios bits from 0..(ngpios-1) set to "1" as in valid. The callback can then directly set some bits to "0" if they cannot be used for interrupts. ``valid_mask`` If not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip. ``first`` Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization. ``irq_enable`` Store old irq_chip irq_enable callback ``irq_disable`` Store old irq_chip irq_disable callback ``irq_unmask`` Store old irq_chip irq_unmask callback ``irq_mask`` Store old irq_chip irq_mask callbackh](h)}(h**Definition**::h](hstrong)}(h**Definition**h]h Definition}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK4hjubh literal_block)}(hXstruct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc, unsigned int child_hwirq, unsigned int child_type, unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc, union gpio_irq_fwspec *fwspec, unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); };h]hXstruct gpio_irq_chip { struct irq_chip *chip; struct irq_domain *domain; #ifdef CONFIG_IRQ_DOMAIN_HIERARCHY; struct fwnode_handle *fwnode; struct irq_domain *parent_domain; int (*child_to_parent_hwirq)(struct gpio_chip *gc, unsigned int child_hwirq, unsigned int child_type, unsigned int *parent_hwirq, unsigned int *parent_type); int (*populate_parent_alloc_arg)(struct gpio_chip *gc, union gpio_irq_fwspec *fwspec, unsigned int parent_hwirq, unsigned int parent_type); unsigned int (*child_offset_to_irq)(struct gpio_chip *gc, unsigned int pin); struct irq_domain_ops child_irq_domain_ops; #endif; irq_flow_handler_t handler; unsigned int default_type; struct lock_class_key *lock_key; struct lock_class_key *request_key; irq_flow_handler_t parent_handler; union { void *parent_handler_data; void **parent_handler_data_array; }; unsigned int num_parents; unsigned int *parents; unsigned int *map; bool threaded; bool per_parent_data; bool initialized; bool domain_is_allocated_externally; int (*init_hw)(struct gpio_chip *gc); void (*init_valid_mask)(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios); unsigned long *valid_mask; unsigned int first; void (*irq_enable)(struct irq_data *data); void (*irq_disable)(struct irq_data *data); void (*irq_unmask)(struct irq_data *data); void (*irq_mask)(struct irq_data *data); };}hjsbah}(h]h ]h"]h$]h&]jjuh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK6hjubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK[hjubhdefinition_list)}(hhh](hdefinition_list_item)}(h@``chip`` GPIO IRQ chip implementation, provided by GPIO driver. h](hterm)}(h``chip``h]hliteral)}(hj!h]hchip}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK5hjubh definition)}(hhh]h)}(h6GPIO IRQ chip implementation, provided by GPIO driver.h]h6GPIO IRQ chip implementation, provided by GPIO driver.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj8hK5hj;ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj8hK5hjubj)}(hq``domain`` Interrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number. h](j)}(h ``domain``h]j$)}(hj^h]hdomain}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj\ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK=hjXubj:)}(hhh]h)}(heInterrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number.h]heInterrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhK; some complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells: gpios = <:c:type:`gpio` instance offset flags>; Legacy GPIO controllers may even have 1 cell: gpios = <:c:type:`gpio` offset>; ``of_node_instance_match`` Determine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges). ``of_xlate`` Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh:}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMHhj ubj)}(hXstruct gpio_chip { const char *label; struct gpio_device *gpiodev; struct device *parent; struct fwnode_handle *fwnode; struct module *owner; int (*request)(struct gpio_chip *gc, unsigned int offset); void (*free)(struct gpio_chip *gc, unsigned int offset); int (*get_direction)(struct gpio_chip *gc, unsigned int offset); int (*direction_input)(struct gpio_chip *gc, unsigned int offset); int (*direction_output)(struct gpio_chip *gc, unsigned int offset, int value); int (*get)(struct gpio_chip *gc, unsigned int offset); int (*get_multiple)(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits); int (*set)(struct gpio_chip *gc, unsigned int offset, int value); int (*set_multiple)(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits); int (*set_config)(struct gpio_chip *gc, unsigned int offset, unsigned long config); int (*to_irq)(struct gpio_chip *gc, unsigned int offset); void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc); int (*init_valid_mask)(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios); int (*add_pin_ranges)(struct gpio_chip *gc); int (*en_hw_timestamp)(struct gpio_chip *gc, u32 offset, unsigned long flags); int (*dis_hw_timestamp)(struct gpio_chip *gc, u32 offset, unsigned long flags); int base; u16 ngpio; u16 offset; const char *const *names; bool can_sleep; #ifdef CONFIG_GPIOLIB_IRQCHIP; struct gpio_irq_chip irq; #endif ; #if defined(CONFIG_OF_GPIO); unsigned int of_gpio_n_cells; bool (*of_node_instance_match)(struct gpio_chip *gc, unsigned int i); int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); #endif ; };h]hXstruct gpio_chip { const char *label; struct gpio_device *gpiodev; struct device *parent; struct fwnode_handle *fwnode; struct module *owner; int (*request)(struct gpio_chip *gc, unsigned int offset); void (*free)(struct gpio_chip *gc, unsigned int offset); int (*get_direction)(struct gpio_chip *gc, unsigned int offset); int (*direction_input)(struct gpio_chip *gc, unsigned int offset); int (*direction_output)(struct gpio_chip *gc, unsigned int offset, int value); int (*get)(struct gpio_chip *gc, unsigned int offset); int (*get_multiple)(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits); int (*set)(struct gpio_chip *gc, unsigned int offset, int value); int (*set_multiple)(struct gpio_chip *gc, unsigned long *mask, unsigned long *bits); int (*set_config)(struct gpio_chip *gc, unsigned int offset, unsigned long config); int (*to_irq)(struct gpio_chip *gc, unsigned int offset); void (*dbg_show)(struct seq_file *s, struct gpio_chip *gc); int (*init_valid_mask)(struct gpio_chip *gc, unsigned long *valid_mask, unsigned int ngpios); int (*add_pin_ranges)(struct gpio_chip *gc); int (*en_hw_timestamp)(struct gpio_chip *gc, u32 offset, unsigned long flags); int (*dis_hw_timestamp)(struct gpio_chip *gc, u32 offset, unsigned long flags); int base; u16 ngpio; u16 offset; const char *const *names; bool can_sleep; #ifdef CONFIG_GPIOLIB_IRQCHIP; struct gpio_irq_chip irq; #endif ; #if defined(CONFIG_OF_GPIO); unsigned int of_gpio_n_cells; bool (*of_node_instance_match)(struct gpio_chip *gc, unsigned int i); int (*of_xlate)(struct gpio_chip *gc, const struct of_phandle_args *gpiospec, u32 *flags); #endif ; };}hj sbah}(h]h ]h"]h$]h&]jjuh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMJhj ubh)}(h **Members**h]j)}(hj h]hMembers}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMohj ubj)}(hhh](j)}(hx``label`` a functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it. h](j)}(h ``label``h]j$)}(hj h]hlabel}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMGhj ubj:)}(hhh]h)}(hma functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it.h]hma functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it.}(hj. hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMFhj+ ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj* hMGhj ubj)}(h5``gpiodev`` the internal state holder, opaque struct h](j)}(h ``gpiodev``h]j$)}(hjO h]hgpiodev}(hjQ hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjM ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMHhjI ubj:)}(hhh]h)}(h(the internal state holder, opaque structh]h(the internal state holder, opaque struct}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjd hMHhje ubah}(h]h ]h"]h$]h&]uh1j9hjI ubeh}(h]h ]h"]h$]h&]uh1jhjd hMHhj ubj)}(h6``parent`` optional parent device providing the GPIOs h](j)}(h ``parent``h]j$)}(hj h]hparent}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMIhj ubj:)}(hhh]h)}(h*optional parent device providing the GPIOsh]h*optional parent device providing the GPIOs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMIhj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMIhj ubj)}(hB``fwnode`` optional fwnode providing this controller's properties h](j)}(h ``fwnode``h]j$)}(hj h]hfwnode}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMJhj ubj:)}(hhh]h)}(h6optional fwnode providing this controller's propertiesh]h8optional fwnode providing this controller’s properties}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMJhj ubah}(h]h ]h"]h$A]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMJhj ubj)}(hB``owner`` helps prevent removal of modules exporting active GPIOs h](j)}(h ``owner``h]j$)}(hj h]howner}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMKhj ubj:)}(hhh]h)}(h7helps prevent removal of modules exporting active GPIOsh]h7helps prevent removal of modules exporting active GPIOs}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMKhj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMKhj ubj)}(h``request`` optional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failure h](j)}(h ``request``h]j$)}(hj3 h]hrequest}(hj5 hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1 ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMNhj- ubj:)}(hhh]h)}(hoptional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failureh]hoptional hook for chip-specific activation, such as enabling module power and clock; may sleep; must return 0 on success or negative error number on failure}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMLhjI ubah}(h]h ]h"]h$]h&]uh1j9hj- ubeh}(h]h ]h"]h$]h&]uh1jhjH hMNhj ubj)}(hk``free`` optional hook for chip-specific deactivation, such as disabling module power and clock; may sleep h](j)}(h``free``h]j$)}(hjm h]hfree}(hjo hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjk ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMPhjg ubj:)}(hhh]h)}(haoptional hook for chip-specific deactivation, such as disabling module power and clock; may sleeph]haoptional hook for chip-specific deactivation, such as disabling module power and clock; may sleep}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMOhj ubah}(h]h ]h"]h$]h&]uh1j9hjg ubeh}(h]h ]h"]h$]h&]uh1jhj hMPhj ubj)}(h``get_direction`` returns direction for signal "offset", 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips. h](j)}(h``get_direction``h]j$)}(hj h]h get_direction}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMThj ubj:)}(hhh]h)}(hreturns direction for signal "offset", 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips.h]hreturns direction for signal “offset”, 0=out, 1=in, (same as GPIO_LINE_DIRECTION_OUT / GPIO_LINE_DIRECTION_IN), or negative error. It is recommended to always implement this function, even on input-only or output-only gpio chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMQhj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMThj ubj)}(h``direction_input`` configures signal "offset" as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. h](j)}(h``direction_input``h]j$)}(hj h]hdirection_input}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMWhj ubj:)}(hhh]h)}(hconfigures signal "offset" as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.h]hconfigures signal “offset” as input, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMUhj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMWhj ubj)}(h``direction_output`` configures signal "offset" as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips. h](j)}(h``direction_output``h]j$)}(hj h]hdirection_output}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMZhj ubj:)}(hhh]h)}(hconfigures signal "offset" as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.h]hconfigures signal “offset” as output, returns 0 on success or a negative error number. This can be omitted on input-only or output-only gpio chips.}(hj4 hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMXhj1 ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj0 hMZhj ubj)}(hX``get`` returns value for signal "offset", 0=low, 1=high, or negative error. the low and high values are defined as physical low on the line in/out to the connector such as a physical pad, pin or rail. The GPIO library has internal logic to handle lines that are active low, such as indicated by overstrike or #name in a schematic, and the driver should not try to second-guess the logic value of a line. h](j)}(h``get``h]j$)}(hjU h]hget}(hjW hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjS ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM`hjO ubj:)}(hhh]h)}(hXreturns value for signal "offset", 0=low, 1=high, or negative error. the low and high values are defined as physical low on the line in/out to the connector such as a physical pad, pin or rail. The GPIO library has internal logic to handle lines that are active low, such as indicated by overstrike or #name in a schematic, and the driver should not try to second-guess the logic value of a line.h]hXreturns value for signal “offset”, 0=low, 1=high, or negative error. the low and high values are defined as physical low on the line in/out to the connector such as a physical pad, pin or rail. The GPIO library has internal logic to handle lines that are active low, such as indicated by overstrike or #name in a schematic, and the driver should not try to second-guess the logic value of a line.}(hjn hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM[hjk ubah}(h]h ]h"]h$]h&]uh1j9hjO ubeh}(h]h ]h"]h$]h&]uh1jhjj hM`hj ubj)}(h``get_multiple`` reads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative error h](j)}(h``get_multiple``h]j$)}(hj h]h get_multiple}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMbhj ubj:)}(hhh]h)}(hureads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative errorh]h}reads values for multiple signals defined by “mask” and stores them in “bits”, returns 0 on success or negative error}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMahj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMbhj ubj)}(h``set`` assigns output value for signal "offset", returns 0 on success or negative error value. The output value follows the same semantic rules as for **get**. h](j)}(h``set``h]j$)}(hj h]hset}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMehj ubj:)}(hhh]h)}(hassigns output value for signal "offset", returns 0 on success or negative error value. The output value follows the same semantic rules as for **get**.h](hassigns output value for signal “offset”, returns 0 on success or negative error value. The output value follows the same semantic rules as for }(hj hhhNhNubj)}(h**get**h]hget}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMchj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMehj ubj)}(h|``set_multiple`` assigns output values for multiple signals defined by "mask", returns 0 on success or negative error value h](j)}(h``set_multiple``h]j$)}(hjh]h set_multiple}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMghjubj:)}(hhh]h)}(hjassigns output values for multiple signals defined by "mask", returns 0 on success or negative error valueh]hnassigns output values for multiple signals defined by “mask”, returns 0 on success or negative error value}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMfhj+ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMghj ubj)}(h``set_config`` optional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure. h](j)}(h``set_config``h]j$)}(hjOh]h set_config}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMjhjIubj:)}(hhh]h)}(hoptional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure.h]hoptional hook for all kinds of settings. Uses the same packed config format as generic pinconf. Must return 0 on success and a negative error number on failure.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhhjeubah}(h]h ]h"]h$]h&]uh1j9hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhMjhj ubj)}(he``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep h](j)}(h ``to_irq``h]j$)}(hjh]hto_irq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMlhjubj:)}(hhh]h)}(hYoptional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleeph]hYoptional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMkhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhj ubj)}(h``dbg_show`` optional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration). h](j)}(h ``dbg_show``h]j$)}(hjh]hdbg_show}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMohjubj:)}(hhh]h)}(hoptional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration).h]hoptional routine to show contents in debugfs; default code will be used when this is omitted, but custom code can show extra state (such as pullup/pulldown configuration).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMmhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMohj ubj)}(hj``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIOs are valid. h](j)}(h``init_valid_mask``h]j$)}(hjh]hinit_valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMqhjubj:)}(hhh]h)}(hUoptional routine to initialize **valid_mask**, to be used if not all GPIOs are valid.h](hoptional routine to initialize }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh(, to be used if not all GPIOs are valid.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMphjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMqhj ubj)}(h``add_pin_ranges`` optional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip. h](j)}(h``add_pin_ranges``h]j$)}(hjIh]hadd_pin_ranges}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMthjCubj:)}(hhh]h)}(hoptional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip.h]hoptional routine to initialize pin ranges, to be used when requires special mapping of the pins that provides GPIO functionality. It is called after adding GPIO chip and before adding IRQ chip.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMrhj_ubah}(h]h ]h"]h$]h&]uh1j9hjCubeh}(h]h ]h"]h$]h&]uh1jhj^hMthj ubj)}(h^``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. h](j)}(h``en_hw_timestamp``h]j$)}(hjh]hen_hw_timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMvhj}ubj:)}(hhh]h)}(hIDependent on GPIO chip, an optional routine to enable hardware timestamp.h]hIDependent on GPIO chip, an optional routine to enable hardware timestamp.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMuhjubah}(h]h ]h"]h$]h&]uh1j9hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMvhj ubj)}(h```dis_hw_timestamp`` Dependent on GPIO chip, an optional routine to disable hardware timestamp. h](j)}(h``dis_hw_timestamp``h]j$)}(hjh]hdis_hw_timestamp}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMxhjubj:)}(hhh]h)}(hJDependent on GPIO chip, an optional routine to disable hardware timestamp.h]hJDependent on GPIO chip, an optional routine to disable hardware timestamp.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMwhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhj ubj)}(hX``base`` identifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run. h](j)}(h``base``h]j$)}(hjh]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM~hjubj:)}(hhh]h)}(hXwidentifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run.h]hXwidentifies the first GPIO number handled by this chip; or, if negative during registration, requests dynamic ID allocation. DEPRECATION: providing anything non-negative and nailing the base offset of GPIO chips is deprecated. Please pass -1 as base to let gpiolib select the chip base in all possible cases. We want to get rid of the static GPIO number space in the long run.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMyhj ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj hM~hj ubj)}(hg``ngpio`` the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1). h](j)}(h ``ngpio``h]j$)}(hj1h]hngpio}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj/ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj+ubj:)}(hhh]h)}(h\the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1).h]h\the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1).}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjGubah}(h]h ]h"]h$]h&]uh1j9hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMhj ubj)}(h``offset`` when multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned. h](j)}(h ``offset``h]j$)}(hjkh]hoffset}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjeubj:)}(hhh]h)}(hwhen multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned.h]hwhen multiple gpio chips belong to the same device this can be used as offset within the device so friendly names can be properly assigned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j9hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(h``names`` if set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be **ngpio** entries long. h](j)}(h ``names``h]j$)}(hjh]hnames}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(hif set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be **ngpio** entries long.h](hif set, must be an array of strings to use as alternative names for the GPIOs in this chip. Any entry in the array may be NULL if there is no alias for the GPIO, however the array must be }(hjhhhNhNubj)}(h **ngpio**h]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh entries long.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hX``can_sleep`` flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers. h](j)}(h ``can_sleep``h]j$)}(hjh]h can_sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(hX flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers.h]hX flag must be set iff get()/set() methods sleep, as they must while accessing GPIO expander chips over I2C or SPI. This implies that if the chip supports IRQs, these IRQs need to be threaded as the chip access may sleep when e.g. reading out the IRQ status registers.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubj)}(hy``irq`` Integrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases. h](j)}(h``irq``h]j$)}(hj+h]hirq}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj%ubj:)}(hhh]h)}(hpIntegrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases.h]hpIntegrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjAubah}(h]h ]h"]h$]h&]uh1j9hj%ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj ubj)}(hXm``of_gpio_n_cells`` Number of cells used to form the GPIO specifier. The standard is 2 cells: gpios = <:c:type:`gpio` offset flags>; some complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells: gpios = <:c:type:`gpio` instance offset flags>; Legacy GPIO controllers may even have 1 cell: gpios = <:c:type:`gpio` offset>; h](j)}(h``of_gpio_n_cells``h]j$)}(hjeh]hof_gpio_n_cells}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj_ubj:)}(hhh](h)}(hINumber of cells used to form the GPIO specifier. The standard is 2 cells:h]hINumber of cells used to form the GPIO specifier. The standard is 2 cells:}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj{ubh)}(h&gpios = <:c:type:`gpio` offset flags>;h](h gpios = <}(hjhhhNhNubh)}(h:c:type:`gpio`h]j$)}(hjh]hgpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubh offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj{ubh)}(hcsome complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells:h]hcsome complex GPIO controllers instantiate more than one chip per device tree node and have 3 cells:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj{ubh)}(h/gpios = <:c:type:`gpio` instance offset flags>;h](h gpios = <}(hjhhhNhNubh)}(h:c:type:`gpio`h]j$)}(hjh]hgpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubh instance offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhj{ubh)}(h-Legacy GPIO controllers may even have 1 cell:h]h-Legacy GPIO controllers may even have 1 cell:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj{ubh)}(h gpios = <:c:type:`gpio` offset>;h](h gpios = <}(hjhhhNhNubh)}(h:c:type:`gpio`h]j$)}(hjh]hgpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hhjzhMhjubh offset>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubeh}(h]h ]h"]h$]h&]uh1j9hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj ubj)}(hX``of_node_instance_match`` Determine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges). h](j)}(h``of_node_instance_match``h]j$)}(hjRh]hof_node_instance_match}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjPubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjLubj:)}(hhh]h)}(hDetermine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges).h]hDetermine if a chip is the right instance. Must be implemented by any driver using more than one gpio_chip per device tree node. Returns true if gc is the instance indicated by i (which is the first cell in the phandles for GPIO lines and gpio-ranges).}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjhubah}(h]h ]h"]h$]h&]uh1j9hjLubeh}(h]h ]h"]h$]h&]uh1jhjghMhj ubj)}(hl``of_xlate`` Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h](j)}(h ``of_xlate``h]j$)}(hjh]hof_xlate}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(h_Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.h]h_Callback to translate a device tree GPIO specifier into a chip- relative GPIO number and flags.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjhhubh)}(hA gpio_chip can help platforms abstract various sources of GPIOs so they can all be accessed through a common programming interface. Example sources would be SOC controllers, FPGAs, multifunction chips, dedicated GPIO expanders, and so on.h]hA gpio_chip can help platforms abstract various sources of GPIOs so they can all be accessed through a common programming interface. Example sources would be SOC controllers, FPGAs, multifunction chips, dedicated GPIO expanders, and so on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjhhubh)}(hX Each chip controls a number of signals, identified in method calls by "offset" values in the range 0..(**ngpio** - 1). When those signals are referenced through calls like gpio_get_value(gpio), the offset is calculated by subtracting **base** from the gpio number.h](hkEach chip controls a number of signals, identified in method calls by “offset” values in the range 0..(}(hjhhhNhNubj)}(h **ngpio**h]hngpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh{ - 1). When those signals are referenced through calls like gpio_get_value(gpio), the offset is calculated by subtracting }(hjhhhNhNubj)}(h**base**h]hbase}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh from the gpio number.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjhhubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"for_each_hwgpio_in_range (C macro)c.for_each_hwgpio_in_rangehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hfor_each_hwgpio_in_rangeh]j@)}(hfor_each_hwgpio_in_rangeh]ji)}(hfor_each_hwgpio_in_rangeh]jo)}(hj9h]hfor_each_hwgpio_in_range}(hjChhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj;hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMubah}(h]h ]h"]h$]h&]jjjuh1j?jjhj7hhhjVhMubah}(h]j2ah ](jjeh"]h$]h&]jj)jhuh1j9hjVhMhj4hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj4hhhjVhMubeh}(h]h ](jmacroeh"]h$]h&]jjjjojjojjjuh1j4hhhjhNhNubh)}(h>``for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)``h]j$)}(hjuh]h:for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjsubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjhhubh block_quote)}(h)Iterates over all GPIOs in a given range h]h)}(h(Iterates over all GPIOs in a given rangeh]h(Iterates over all GPIOs in a given range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1jhjhMhjhhubj)}(hX**Parameters** ``_chip`` Chip to iterate over. ``_i`` Loop counter. ``_base`` First GPIO in the ranger. ``_size`` Amount of GPIOs to check starting from **base**. ``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM!hjubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j$)}(hjh]h_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``_i`` Loop counter. h](j)}(h``_i``h]j$)}(hjh]h_i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(h Loop counter.h]h Loop counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``_base`` First GPIO in the ranger. h](j)}(h ``_base``h]j$)}(hj=h]h_base}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj;ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM hj7ubj:)}(hhh]h)}(hFirst GPIO in the ranger.h]hFirst GPIO in the ranger.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjRhM hjSubah}(h]h ]h"]h$]h&]uh1j9hj7ubeh}(h]h ]h"]h$]h&]uh1jhjRhM hjubj)}(h;``_size`` Amount of GPIOs to check starting from **base**. h](j)}(h ``_size``h]j$)}(hjvh]h_size}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjtubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM!hjpubj:)}(hhh]h)}(h0Amount of GPIOs to check starting from **base**.h](h'Amount of GPIOs to check starting from }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhM!hjubah}(h]h ]h"]h$]h&]uh1j9hjpubeh}(h]h ]h"]h$]h&]uh1jhjhM!hjubj)}(hj``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](j)}(h ``_label``h]j$)}(hjh]h_label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM"hjubj:)}(hhh]h)}(h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h]h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM"hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM"hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0for_each_hwgpio (C macro)c.for_each_hwgpiohNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hfor_each_hwgpioh]j@)}(hfor_each_hwgpioh]ji)}(hfor_each_hwgpioh]jo)}(hjh]hfor_each_hwgpio}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM,ubah}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj1hM,ubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j9hj1hM,hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj1hM,ubeh}(h]h ](jmacroeh"]h$]h&]jjjjJjjJjjjuh1j4hhhjhNhNubh)}(h'``for_each_hwgpio (_chip, _i, _label)``h]j$)}(hjPh]h#for_each_hwgpio (_chip, _i, _label)}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM.hjhhubj)}(h(Iterates over all GPIOs for given chip. h]h)}(h'Iterates over all GPIOs for given chip.h]h'Iterates over all GPIOs for given chip.}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM,hjfubah}(h]h ]h"]h$]h&]uh1jhjxhM,hjhhubj)}(h**Parameters** ``_chip`` Chip to iterate over. ``_i`` Loop counter. ``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM0hjubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j$)}(hjh]h_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM-hjubj:)}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM-hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM-hjubj)}(h``_i`` Loop counter. h](j)}(h``_i``h]j$)}(hjh]h_i}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM.hjubj:)}(hhh]h)}(h Loop counter.h]h Loop counter.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM.hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM.hjubj)}(hj``_label`` Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h](j)}(h ``_label``h]j$)}(hjh]h_label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM/hjubj:)}(hhh]h)}(h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.h]h_Place to store the address of the label if the GPIO is requested. Set to NULL for unused GPIOs.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hM/hj,ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj+hM/hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*for_each_requested_gpio_in_range (C macro)"c.for_each_requested_gpio_in_rangehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h for_each_requested_gpio_in_rangeh]j@)}(h for_each_requested_gpio_in_rangeh]ji)}(h for_each_requested_gpio_in_rangeh]jo)}(hjih]h for_each_requested_gpio_in_range}(hjshhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjoubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjkhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM6ubah}(h]h ]h"]h$]h&]jjjuh1j?jjhjghhhjhM6ubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1j9hjhM6hjdhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjdhhhjhM6ubeh}(h]h ](jmacroeh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubh)}(hF``for_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)``h]j$)}(hjh]hBfor_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM8hjhhubj)}(h/iterates over requested GPIOs in a given range h]h)}(h.iterates over requested GPIOs in a given rangeh]h.iterates over requested GPIOs in a given range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM6hjubah}(h]h ]h"]h$]h&]uh1jhjhM6hjhhubj)}(h**Parameters** ``_chip`` the chip to query ``_i`` loop variable ``_base`` first GPIO in the range ``_size`` amount of GPIOs to check starting from **base** ``_label`` label of current GPIOh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM:hjubj)}(hhh](j)}(h``_chip`` the chip to query h](j)}(h ``_chip``h]j$)}(hjh]h_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM7hjubj:)}(hhh]h)}(hthe chip to queryh]hthe chip to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM7hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubj)}(h``_i`` loop variable h](j)}(h``_i``h]j$)}(hj2h]h_i}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj0ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM8hj,ubj:)}(hhh]h)}(h loop variableh]h loop variable}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhM8hjHubah}(h]h ]h"]h$]h&]uh1j9hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhM8hjubj)}(h"``_base`` first GPIO in the range h](j)}(h ``_base``h]j$)}(hjkh]h_base}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjiubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM9hjeubj:)}(hhh]h)}(hfirst GPIO in the rangeh]hfirst GPIO in the range}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j9hjeubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(h:``_size`` amount of GPIOs to check starting from **base** h](j)}(h ``_size``h]j$)}(hjh]h_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM:hjubj:)}(hhh]h)}(h/amount of GPIOs to check starting from **base**h](h'amount of GPIOs to check starting from }(hjhhhNhNubj)}(h**base**h]hbase}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubj)}(h ``_label`` label of current GPIOh](j)}(h ``_label``h]j$)}(hjh]h_label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM<hjubj:)}(hhh]h)}(hlabel of current GPIOh]hlabel of current GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM;hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM<hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiochip_add_data (C macro)c.gpiochip_add_datahNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hgpiochip_add_datah]j@)}(hgpiochip_add_datah]ji)}(hgpiochip_add_datah]jo)}(hj?h]hgpiochip_add_data}(hjIhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjAhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMKubah}(h]h ]h"]h$]h&]jjjuh1j?jjhj=hhhj\hMKubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1j9hj\hMKhj:hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj:hhhj\hMKubeh}(h]h ](jmacroeh"]h$]h&]jjjjujjujjjuh1j4hhhjhNhNubh)}(h ``gpiochip_add_data (gc, data)``h]j$)}(hj{h]hgpiochip_add_data (gc, data)}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjyubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMMhjhhubj)}(hregister a gpio_chip h]h)}(hregister a gpio_chiph]hregister a gpio_chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMKhjubah}(h]h ]h"]h$]h&]uh1jhjhMKhjhhubj)}(hX-**Parameters** ``gc`` the chip to register, with gc->base initialized ``data`` driver-private data associated with this chip **Context** potentially before irqs will work **Description** When gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework's arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely. gpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall(). If gc->base is negative, this requests dynamic assignment of a range of valid GPIOs. **Return** A negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMOhjubj)}(hhh](j)}(h7``gc`` the chip to register, with gc->base initialized h](j)}(h``gc``h]j$)}(hjh]hgc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMLhjubj:)}(hhh]h)}(h/the chip to register, with gc->base initializedh]h/the chip to register, with gc->base initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMLhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMLhjubj)}(h7``data`` driver-private data associated with this chip h](j)}(h``data``h]j$)}(hjh]hdata}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMMhjubj:)}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hjCh]hContext}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMOhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMOhjubh)}(h**Description**h]j)}(hjjh]h Description}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMQhjubh)}(hWhen gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework's arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely.h]hWhen gpiochip_add_data() is called very early during boot, so that GPIOs can be freely used, the gc->parent device must be registered before the gpio framework’s arch_initcall(). Otherwise sysfs initialization for GPIOs will fail rudely.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMPhjubh)}(hagpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall().h]hagpiochip_add_data() must only be called after gpiolib initialization, i.e. after core_initcall().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMUhjubh)}(hTIf gc->base is negative, this requests dynamic assignment of a range of valid GPIOs.h]hTIf gc->base is negative, this requests dynamic assignment of a range of valid GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMXhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM[hjubh)}(hA negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h]hA negative errno if the chip can’t be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhM\hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpio_pin_range (C struct)c.gpio_pin_rangehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hgpio_pin_rangeh]j@)}(hstruct gpio_pin_rangeh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMcubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMcubji)}(hgpio_pin_rangeh]jo)}(hjh]hgpio_pin_range}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMcubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMcubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMchjhhubj)}(hhh]h)}(h#pin range controlled by a gpio chiph]h#pin range controlled by a gpio chip}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj3hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMcubeh}(h]h ](jstructeh"]h$]h&]jjjjNjjNjjjuh1j4hhhjhNhNubj)}(hXi**Definition**:: struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; }; **Members** ``node`` list for maintaining set of pin ranges, used internally ``pctldev`` pinctrl device which handles corresponding pins ``range`` actual range of pins controlled by a gpio controllerh](h)}(h**Definition**::h](j)}(h**Definition**h]h Definition}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubh:}(hjVhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjRubj)}(h{struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; };h]h{struct gpio_pin_range { struct list_head node; struct pinctrl_dev *pctldev; struct pinctrl_gpio_range range; };}hjssbah}(h]h ]h"]h$]h&]jjuh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjRubh)}(h **Members**h]j)}(hjh]hMembers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjRubj)}(hhh](j)}(hA``node`` list for maintaining set of pin ranges, used internally h](j)}(h``node``h]j$)}(hjh]hnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(h7list for maintaining set of pin ranges, used internallyh]h7list for maintaining set of pin ranges, used internally}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``pctldev`` pinctrl device which handles corresponding pins h](j)}(h ``pctldev``h]j$)}(hjh]hpctldev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(h/pinctrl device which handles corresponding pinsh]h/pinctrl device which handles corresponding pins}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``range`` actual range of pins controlled by a gpio controllerh](j)}(h ``range``h]j$)}(hjh]hrange}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhjubj:)}(hhh]h)}(h4actual range of pins controlled by a gpio controllerh]h4actual range of pins controlled by a gpio controller}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:23: ./include/linux/gpio/driver.hhMhj+ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubeh}(h]h ]h"]h$]h&]uh1jhjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpio_to_desc (C function)c.gpio_to_deschNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/struct gpio_desc * gpio_to_desc (unsigned gpio)h]j@)}(h-struct gpio_desc *gpio_to_desc(unsigned gpio)h](jF)}(hjIh]hstruct}(hjohhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjkhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKubjX)}(h h]h }(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjkhhhj|hKubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjmodnameN classnameNjj)}j]j ASTIdentifier)}j gpio_to_descsbc.gpio_to_descasbuh1hhjkhhhj|hKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjkhhhj|hKubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjkhhhj|hKubji)}(h gpio_to_desch]jo)}(hjh]h gpio_to_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjkhhhj|hKubhdesc_parameterlist)}(h(unsigned gpio)h]hdesc_parameter)}(h unsigned gpioh](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hgpioh]hgpio}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjkhhhj|hKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjghhhj|hKubah}(h]jbah ](jjeh"]h$]h&]jj)jhuh1j9hj|hKhjdhhubj)}(hhh]h)}(h'Convert a GPIO number to its descriptorh]h'Convert a GPIO number to its descriptor}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj:hhubah}(h]h ]h"]h$]h&]uh1jhjdhhhj|hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``unsigned gpio`` global GPIO number **Return** The GPIO descriptor associated with the given GPIO, or ``NULL`` if no GPIO with the given number exists in the system.h](h)}(h**Parameters**h]j)}(hj_h]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjYubj)}(hhh]j)}(h%``unsigned gpio`` global GPIO number h](j)}(h``unsigned gpio``h]j$)}(hj~h]h unsigned gpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj|ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubj:)}(hhh]h)}(hglobal GPIO numberh]hglobal GPIO number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjxubeh}(h]h ]h"]h$]h&]uh1jhjhKhjuubah}(h]h ]h"]h$]h&]uh1jhjYubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjYubh)}(hvThe GPIO descriptor associated with the given GPIO, or ``NULL`` if no GPIO with the given number exists in the system.h](h7The GPIO descriptor associated with the given GPIO, or }(hjhhhNhNubj$)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh7 if no GPIO with the given number exists in the system.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!gpio_device_get_desc (C function)c.gpio_device_get_deschNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hVstruct gpio_desc * gpio_device_get_desc (struct gpio_device *gdev, unsigned int hwnum)h]j@)}(hTstruct gpio_desc *gpio_device_get_desc(struct gpio_device *gdev, unsigned int hwnum)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj hhhjhKubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj/hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jgpio_device_get_descsbc.gpio_device_get_descasbuh1hhj hhhjhKubjX)}(h h]h }(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj hhhjhKubj)}(hjh]h*}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhKubji)}(hgpio_device_get_desch]jo)}(hjMh]hgpio_device_get_desc}(hjohhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjkubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj hhhjhKubj)}(h.(struct gpio_device *gdev, unsigned int hwnum)h](j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jKc.gpio_device_get_descasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hgdevh]hgdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hhwnumh]hhwnum}(hj2hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj hhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhKhjhhubj)}(hhh]h)}(hWget the GPIO descriptor corresponding to the given hardware number for this GPIO deviceh]hWget the GPIO descriptor corresponding to the given hardware number for this GPIO device}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjYhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjtjjtjjjuh1j4hhhjhNhNubj)}(hXW**Parameters** ``struct gpio_device *gdev`` GPIO device to get the descriptor from ``unsigned int hwnum`` hardware number of the GPIO for this chip **Return** A pointer to the GPIO descriptor or ``EINVAL`` if no GPIO exists in the given chip for the specified hardware number or ``ENODEV`` if the underlying chip already vanished. **Description** The reference count of struct gpio_device is *NOT* increased like when the GPIO is being requested for exclusive usage. It's up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.h](h)}(h**Parameters**h]j)}(hj~h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubj)}(hhh](j)}(hD``struct gpio_device *gdev`` GPIO device to get the descriptor from h](j)}(h``struct gpio_device *gdev``h]j$)}(hjh]hstruct gpio_device *gdev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjubj:)}(hhh]h)}(h&GPIO device to get the descriptor fromh]h&GPIO device to get the descriptor from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hA``unsigned int hwnum`` hardware number of the GPIO for this chip h](j)}(h``unsigned int hwnum``h]j$)}(hjh]hunsigned int hwnum}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjubj:)}(hhh]h)}(h)hardware number of the GPIO for this chiph]h)hardware number of the GPIO for this chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubh)}(hA pointer to the GPIO descriptor or ``EINVAL`` if no GPIO exists in the given chip for the specified hardware number or ``ENODEV`` if the underlying chip already vanished.h](h$A pointer to the GPIO descriptor or }(hj'hhhNhNubj$)}(h ``EINVAL``h]hEINVAL}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj'ubhJ if no GPIO exists in the given chip for the specified hardware number or }(hj'hhhNhNubj$)}(h ``ENODEV``h]hENODEV}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj'ubh) if the underlying chip already vanished.}(hj'hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubh)}(h**Description**h]j)}(hj\h]h Description}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubh)}(hThe reference count of struct gpio_device is *NOT* increased like when the GPIO is being requested for exclusive usage. It's up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.h](h-The reference count of struct gpio_device is }(hjrhhhNhNubhemphasis)}(h*NOT*h]hNOT}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1jzhjrubh increased like when the GPIO is being requested for exclusive usage. It’s up to the caller to make sure the GPIO device will stay alive together with the descriptor returned by this function.}(hjrhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0desc_to_gpio (C function)c.desc_to_gpiohNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/int desc_to_gpio (const struct gpio_desc *desc)h]j@)}(h.int desc_to_gpio(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhKubji)}(h desc_to_gpioh]jo)}(h desc_to_gpioh]h desc_to_gpio}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjF)}(hjIh]hstruct}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj, hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj) ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj. modnameN classnameNjj)}j]j)}jjsbc.desc_to_gpioasbuh1hhjubjX)}(h h]h }(hjL hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjZ hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hjg hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhKhjhhubj)}(hhh]h)}(h2convert a GPIO descriptor to the integer namespaceh]h2convert a GPIO descriptor to the integer namespace}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``const struct gpio_desc *desc`` GPIO descriptor **Description** This should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes. **Return** The global GPIO number for the GPIO specified by its descriptor.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubj)}(hhh]j)}(h1``const struct gpio_desc *desc`` GPIO descriptor h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj h]hconst struct gpio_desc *desc}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubj:)}(hhh]h)}(hGPIO descriptorh]hGPIO descriptor}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hKhj ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj hKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hj !h]h Description}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj !ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubh)}(huThis should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes.h]huThis should disappear in the future but is needed since we still use GPIO numbers for error messages and sysfs nodes.}(hj#!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubh)}(h **Return**h]j)}(hj4!h]hReturn}(hj6!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2!ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubh)}(h@The global GPIO number for the GPIO specified by its descriptor.h]h@The global GPIO number for the GPIO specified by its descriptor.}(hjJ!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_hwgpio (C function)c.gpiod_hwgpiohNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/int gpiod_hwgpio (const struct gpio_desc *desc)h]j@)}(h.int gpiod_hwgpio(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjy!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhju!hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKubjX)}(h h]h }(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhju!hhhj!hKubji)}(h gpiod_hwgpioh]jo)}(h gpiod_hwgpioh]h gpiod_hwgpio}(hj!hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj!ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhju!hhhj!hKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj!ubjX)}(h h]h }(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubjF)}(hjIh]hstruct}(hj!hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj!ubjX)}(h h]h }(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj!hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj!modnameN classnameNjj)}j]j)}jj!sbc.gpiod_hwgpioasbuh1hhj!ubjX)}(h h]h }(hj"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjo)}(hdesch]hdesc}(hj*"hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj!ubah}(h]h ]h"]h$]h&]jjuh1jhju!hhhj!hKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjq!hhhj!hKubah}(h]jl!ah ](jjeh"]h$]h&]jj)jhuh1j9hj!hKhjn!hhubj)}(hhh]h)}(hEReturn the GPIO number of the passed descriptor relative to its chip.h]hEReturn the GPIO number of the passed descriptor relative to its chip.}(hjT"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjQ"hhubah}(h]h ]h"]h$]h&]uh1jhjn!hhhj!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjl"jjl"jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` GPIO descriptor **Return** Hardware offset of the GPIO represented by the descriptor.h](h)}(h**Parameters**h]j)}(hjv"h]h Parameters}(hjx"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjt"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjp"ubj)}(hhh]j)}(h1``const struct gpio_desc *desc`` GPIO descriptor h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj"h]hconst struct gpio_desc *desc}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj"ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj"ubj:)}(hhh]h)}(hGPIO descriptorh]hGPIO descriptor}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1j9hj"ubeh}(h]h ]h"]h$]h&]uh1jhj"hKhj"ubah}(h]h ]h"]h$]h&]uh1jhjp"ubh)}(h **Return**h]j)}(hj"h]hReturn}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjp"ubh)}(h:Hardware offset of the GPIO represented by the descriptor.h]h:Hardware offset of the GPIO represented by the descriptor.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjp"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_to_chip (C function)c.gpiod_to_chiphNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h?struct gpio_chip * gpiod_to_chip (const struct gpio_desc *desc)h]j@)}(h=struct gpio_chip *gpiod_to_chip(const struct gpio_desc *desc)h](jF)}(hjIh]hstruct}(hj#hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj#hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKubjX)}(h h]h }(hj##hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#hhhj"#hKubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj4#hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj1#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6#modnameN classnameNjj)}j]j)}j gpiod_to_chipsbc.gpiod_to_chipasbuh1hhj#hhhj"#hKubjX)}(h h]h }(hjU#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#hhhj"#hKubj)}(hjh]h*}(hjc#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#hhhj"#hKubji)}(h gpiod_to_chiph]jo)}(hjR#h]h gpiod_to_chip}(hjt#hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjp#ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj#hhhj"#hKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hj#hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj#ubjX)}(h h]h }(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#ubjF)}(hjIh]hstruct}(hj#hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj#ubjX)}(h h]h }(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj#hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]jP#c.gpiod_to_chipasbuh1hhj#ubjX)}(h h]h }(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj#ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjo)}(hdesch]hdesc}(hj$hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj#ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj#ubah}(h]h ]h"]h$]h&]jjuh1jhj#hhhj"#hKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj #hhhj"#hKubah}(h]j#ah ](jjeh"]h$]h&]jj)jhuh1j9hj"#hKhj #hhubj)}(hhh]h)}(h7Return the GPIO chip to which a GPIO descriptor belongsh]h7Return the GPIO chip to which a GPIO descriptor belongs}(hj+$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhj($hhubah}(h]h ]h"]h$]h&]uh1jhj #hhhj"#hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjC$jjC$jjjuh1j4hhhjhNhNubj)}(hXF**Parameters** ``const struct gpio_desc *desc`` descriptor to return the chip of **Description** *DEPRECATED* This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer. **Return** Address of the GPIO chip backing this device.h](h)}(h**Parameters**h]j)}(hjM$h]h Parameters}(hjO$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjK$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjG$ubj)}(hhh]j)}(hB``const struct gpio_desc *desc`` descriptor to return the chip of h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hjl$h]hconst struct gpio_desc *desc}(hjn$hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjj$ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjf$ubj:)}(hhh]h)}(h descriptor to return the chip ofh]h descriptor to return the chip of}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hKhj$ubah}(h]h ]h"]h$]h&]uh1j9hjf$ubeh}(h]h ]h"]h$]h&]uh1jhj$hKhjc$ubah}(h]h ]h"]h$]h&]uh1jhjG$ubh)}(h**Description**h]j)}(hj$h]h Description}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjG$ubh)}(h*DEPRECATED* This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer.h](j{)}(h *DEPRECATED*h]h DEPRECATED}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jzhj$ubh This function is unsafe and should not be used. Using the chip address without taking the SRCU read lock may result in dereferencing a dangling pointer.}(hj$hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chKhjG$ubh)}(h **Return**h]j)}(hj$h]hReturn}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjG$ubh)}(h-Address of the GPIO chip backing this device.h]h-Address of the GPIO chip backing this device.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjG$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!gpiod_to_gpio_device (C function)c.gpiod_to_gpio_devicehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hBstruct gpio_device * gpiod_to_gpio_device (struct gpio_desc *desc)h]j@)}(h@struct gpio_device *gpiod_to_gpio_device(struct gpio_desc *desc)h](jF)}(hjIh]hstruct}(hj!%hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj%hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj/%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%hhhj.%hMubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj@%hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj=%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjB%modnameN classnameNjj)}j]j)}jgpiod_to_gpio_devicesbc.gpiod_to_gpio_deviceasbuh1hhj%hhhj.%hMubjX)}(h h]h }(hja%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%hhhj.%hMubj)}(hjh]h*}(hjo%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%hhhj.%hMubji)}(hgpiod_to_gpio_deviceh]jo)}(hj^%h]hgpiod_to_gpio_device}(hj%hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|%ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj%hhhj.%hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj%hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj%ubjX)}(h h]h }(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj%hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%modnameN classnameNjj)}j]j\%c.gpiod_to_gpio_deviceasbuh1hhj%ubjX)}(h h]h }(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjo)}(hdesch]hdesc}(hj%hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj%ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj%ubah}(h]h ]h"]h$]h&]jjuh1jhj%hhhj.%hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj%hhhj.%hMubah}(h]j%ah ](jjeh"]h$]h&]jj)jhuh1j9hj.%hMhj%hhubj)}(hhh]h)}(h8Return the GPIO device to which this descriptor belongs.h]h8Return the GPIO device to which this descriptor belongs.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhj%hhhj.%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4&jj4&jjjuh1j4hhhjhNhNubj)}(hXW**Parameters** ``struct gpio_desc *desc`` Descriptor for which to return the GPIO device. **Description** This *DOES NOT* increase the reference count of the GPIO device as it's expected that the descriptor is requested and the users already holds a reference to the device. **Return** Address of the GPIO device owning this descriptor.h](h)}(h**Parameters**h]j)}(hj>&h]h Parameters}(hj@&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj<&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8&ubj)}(hhh]j)}(hK``struct gpio_desc *desc`` Descriptor for which to return the GPIO device. h](j)}(h``struct gpio_desc *desc``h]j$)}(hj]&h]hstruct gpio_desc *desc}(hj_&hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj[&ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjW&ubj:)}(hhh]h)}(h/Descriptor for which to return the GPIO device.h]h/Descriptor for which to return the GPIO device.}(hjv&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjr&hMhjs&ubah}(h]h ]h"]h$]h&]uh1j9hjW&ubeh}(h]h ]h"]h$]h&]uh1jhjr&hMhjT&ubah}(h]h ]h"]h$]h&]uh1jhj8&ubh)}(h**Description**h]j)}(hj&h]h Description}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8&ubh)}(hThis *DOES NOT* increase the reference count of the GPIO device as it's expected that the descriptor is requested and the users already holds a reference to the device.h](hThis }(hj&hhhNhNubj{)}(h *DOES NOT*h]hDOES NOT}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jzhj&ubh increase the reference count of the GPIO device as it’s expected that the descriptor is requested and the users already holds a reference to the device.}(hj&hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8&ubh)}(h **Return**h]j)}(hj&h]hReturn}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8&ubh)}(h2Address of the GPIO device owning this descriptor.h]h2Address of the GPIO device owning this descriptor.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!gpio_device_get_base (C function)c.gpio_device_get_basehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h3int gpio_device_get_base (struct gpio_device *gdev)h]j@)}(h2int gpio_device_get_base(struct gpio_device *gdev)h](j)}(hinth]hint}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj'hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM%ubjX)}(h h]h }(hj%'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj'hhhj$'hM%ubji)}(hgpio_device_get_baseh]jo)}(hgpio_device_get_baseh]hgpio_device_get_base}(hj7'hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj3'ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj'hhhj$'hM%ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hjS'hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjO'ubjX)}(h h]h }(hj`'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjO'ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hjq'hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjn'ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjs'modnameN classnameNjj)}j]j)}jj9'sbc.gpio_device_get_baseasbuh1hhjO'ubjX)}(h h]h }(hj'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjO'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjO'ubjo)}(hgdevh]hgdev}(hj'hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjO'ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjK'ubah}(h]h ]h"]h$]h&]jjuh1jhj'hhhj$'hM%ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj'hhhj$'hM%ubah}(h]j 'ah ](jjeh"]h$]h&]jj)jhuh1j9hj$'hM%hj 'hhubj)}(hhh]h)}(h1Get the base GPIO number allocated by this deviceh]h1Get the base GPIO number allocated by this device}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM%hj'hhubah}(h]h ]h"]h$]h&]uh1jhj 'hhhj$'hM%ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** First GPIO number in the global GPIO numberspace for this device.h](h)}(h**Parameters**h]j)}(hj'h]h Parameters}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj'ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM)hj'ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j$)}(hj(h]hstruct gpio_device *gdev}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj(ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM&hj(ubj:)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj0(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,(hM&hj-(ubah}(h]h ]h"]h$]h&]uh1j9hj(ubeh}(h]h ]h"]h$]h&]uh1jhj,(hM&hj(ubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h **Return**h]j)}(hjR(h]hReturn}(hjT(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjP(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM(hj'ubh)}(hAFirst GPIO number in the global GPIO numberspace for this device.h]hAFirst GPIO number in the global GPIO numberspace for this device.}(hjh(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM(hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"gpio_device_get_label (C function)c.gpio_device_get_labelhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h=const char * gpio_device_get_label (struct gpio_device *gdev)h]j@)}(h;const char *gpio_device_get_label(struct gpio_device *gdev)h](jF)}(hjh]hconst}(hj(hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj(hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM2ubjX)}(h h]h }(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(hhhj(hM2ubj)}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hM2ubjX)}(h h]h }(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(hhhj(hM2ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhj(hM2ubji)}(hgpio_device_get_labelh]jo)}(hgpio_device_get_labelh]hgpio_device_get_label}(hj(hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj(ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj(hhhj(hM2ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hj(hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj(ubjX)}(h h]h }(hj )hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj)hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}jj(sbc.gpio_device_get_labelasbuh1hhj(ubjX)}(h h]h }(hj:)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(ubj)}(hjh]h*}(hjH)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjo)}(hgdevh]hgdev}(hjU)hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj(ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj(ubah}(h]h ]h"]h$]h&]jjuh1jhj(hhhj(hM2ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj(hhhj(hM2ubah}(h]j(ah ](jjeh"]h$]h&]jj)jhuh1j9hj(hM2hj(hhubj)}(hhh]h)}(h!Get the label of this GPIO deviceh]h!Get the label of this GPIO device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM2hj|)hhubah}(h]h ]h"]h$]h&]uh1jhj(hhhj(hM2ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** Pointer to the string containing the GPIO device label. The string's lifetime is tied to that of the underlying GPIO device.h](h)}(h**Parameters**h]j)}(hj)h]h Parameters}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM6hj)ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j$)}(hj)h]hstruct gpio_device *gdev}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj)ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3hj)ubj:)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM3hj)ubah}(h]h ]h"]h$]h&]uh1j9hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM3hj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubh)}(h **Return**h]j)}(hj)h]hReturn}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM5hj)ubh)}(h|Pointer to the string containing the GPIO device label. The string's lifetime is tied to that of the underlying GPIO device.h]h~Pointer to the string containing the GPIO device label. The string’s lifetime is tied to that of the underlying GPIO device.}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM5hj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!gpio_device_get_chip (C function)c.gpio_device_get_chiphNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hBstruct gpio_chip * gpio_device_get_chip (struct gpio_device *gdev)h]j@)}(h@struct gpio_chip *gpio_device_get_chip(struct gpio_device *gdev)h](jF)}(hjIh]hstruct}(hj@*hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj<*hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM@ubjX)}(h h]h }(hjN*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<*hhhjM*hM@ubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj_*hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj\*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetja*modnameN classnameNjj)}j]j)}jgpio_device_get_chipsbc.gpio_device_get_chipasbuh1hhj<*hhhjM*hM@ubjX)}(h h]h }(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<*hhhjM*hM@ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<*hhhjM*hM@ubji)}(hgpio_device_get_chiph]jo)}(hj}*h]hgpio_device_get_chip}(hj*hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj*ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj<*hhhjM*hM@ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hj*hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj*ubjX)}(h h]h }(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj*ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj*hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj*ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj*modnameN classnameNjj)}j]j{*c.gpio_device_get_chipasbuh1hhj*ubjX)}(h h]h }(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj*ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjo)}(hgdevh]hgdev}(hj+hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj*ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj*ubah}(h]h ]h"]h$]h&]jjuh1jhj<*hhhjM*hM@ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj8*hhhjM*hM@ubah}(h]j3*ah ](jjeh"]h$]h&]jj)jhuh1j9hjM*hM@hj5*hhubj)}(hhh]h)}(h4Get the gpio_chip implementation of this GPIO deviceh]h4Get the gpio_chip implementation of this GPIO device}(hj;+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM@hj8+hhubah}(h]h ]h"]h$]h&]uh1jhj5*hhhjM*hM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjS+jjS+jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_device *gdev`` GPIO device **Return** Address of the GPIO chip backing this device. **Description** *DEPRECATED* Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is *NOT* safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device). Use at your own risk.h](h)}(h**Parameters**h]j)}(hj]+h]h Parameters}(hj_+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMDhjW+ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j$)}(hj|+h]hstruct gpio_device *gdev}(hj~+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjz+ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMAhjv+ubj:)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj+hMAhj+ubah}(h]h ]h"]h$]h&]uh1j9hjv+ubeh}(h]h ]h"]h$]h&]uh1jhj+hMAhjs+ubah}(h]h ]h"]h$]h&]uh1jhjW+ubh)}(h **Return**h]j)}(hj+h]hReturn}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMChjW+ubh)}(h-Address of the GPIO chip backing this device.h]h-Address of the GPIO chip backing this device.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMChjW+ubh)}(h**Description**h]j)}(hj+h]h Description}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMEhjW+ubh)}(hX<*DEPRECATED* Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is *NOT* safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device).h](j{)}(h *DEPRECATED*h]h DEPRECATED}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jzhj+ubh Until we can get rid of all non-driver users of struct gpio_chip, we must provide a way of retrieving the pointer to it from struct gpio_device. This is }(hj+hhhNhNubj{)}(h*NOT*h]hNOT}(hj ,hhhNhNubah}(h]h ]h"]h$]h&]uh1jzhj+ubh safe as the GPIO API is considered to be hot-unpluggable and the chip can dissapear at any moment (unlike reference-counted struct gpio_device).}(hj+hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMEhjW+ubh)}(hUse at your own risk.h]hUse at your own risk.}(hj#,hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMLhjW+ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_is_equal (C function)c.gpiod_is_equalhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hQbool gpiod_is_equal (const struct gpio_desc *desc, const struct gpio_desc *other)h]j@)}(hPbool gpiod_is_equal(const struct gpio_desc *desc, const struct gpio_desc *other)h](j)}(hboolh]hbool}(hjR,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN,hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hja,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjN,hhhj`,hMubji)}(hgpiod_is_equalh]jo)}(hgpiod_is_equalh]hgpiod_is_equal}(hjs,hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjo,ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjN,hhhj`,hMubj)}(h=(const struct gpio_desc *desc, const struct gpio_desc *other)h](j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hj,hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj,ubjX)}(h h]h }(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubjF)}(hjIh]hstruct}(hj,hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj,ubjX)}(h h]h }(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj,hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj,ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj,modnameN classnameNjj)}j]j)}jju,sbc.gpiod_is_equalasbuh1hhj,ubjX)}(h h]h }(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj,ubj)}(hjh]h*}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjo)}(hdesch]hdesc}(hj-hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj,ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubj)}(hconst struct gpio_desc *otherh](jF)}(hjh]hconst}(hj-hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj-ubjX)}(h h]h }(hj)-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubjF)}(hjIh]hstruct}(hj7-hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj-ubjX)}(h h]h }(hjD-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjU-hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjR-ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjW-modnameN classnameNjj)}j]j,c.gpiod_is_equalasbuh1hhj-ubjX)}(h h]h }(hjs-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj-ubj)}(hjh]h*}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj-ubjo)}(hotherh]hother}(hj-hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj-ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj,ubeh}(h]h ]h"]h$]h&]jjuh1jhjN,hhhj`,hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjJ,hhhj`,hMubah}(h]jE,ah ](jjeh"]h$]h&]jj)jhuh1j9hj`,hMhjG,hhubj)}(hhh]h)}(h4Check if two GPIO descriptors refer to the same pin.h]h4Check if two GPIO descriptors refer to the same pin.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhjG,hhhj`,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` Descriptor to compare. ``const struct gpio_desc *other`` The second descriptor to compare against. **Return** True if the descriptors refer to the same physical pin. False otherwise.h](h)}(h**Parameters**h]j)}(hj-h]h Parameters}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-ubj)}(hhh](j)}(h8``const struct gpio_desc *desc`` Descriptor to compare. h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj-h]hconst struct gpio_desc *desc}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-ubj:)}(hhh]h)}(hDescriptor to compare.h]hDescriptor to compare.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj.hMhj.ubah}(h]h ]h"]h$]h&]uh1j9hj-ubeh}(h]h ]h"]h$]h&]uh1jhj.hMhj-ubj)}(hL``const struct gpio_desc *other`` The second descriptor to compare against. h](j)}(h!``const struct gpio_desc *other``h]j$)}(hj2.h]hconst struct gpio_desc *other}(hj4.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj0.ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj,.ubj:)}(hhh]h)}(h)The second descriptor to compare against.h]h)The second descriptor to compare against.}(hjK.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjG.hMhjH.ubah}(h]h ]h"]h$]h&]uh1j9hj,.ubeh}(h]h ]h"]h$]h&]uh1jhjG.hMhj-ubeh}(h]h ]h"]h$]h&]uh1jhj-ubh)}(h **Return**h]j)}(hjm.h]hReturn}(hjo.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjk.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-ubh)}(hHTrue if the descriptors refer to the same physical pin. False otherwise.h]hHTrue if the descriptors refer to the same physical pin. False otherwise.}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0 gpiod_get_direction (C function)c.gpiod_get_directionhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h0int gpiod_get_direction (struct gpio_desc *desc)h]j@)}(h/int gpiod_get_direction(struct gpio_desc *desc)h](j)}(hinth]hint}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.hhhj.hMubji)}(hgpiod_get_directionh]jo)}(hgpiod_get_directionh]hgpiod_get_direction}(hj.hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj.ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj.hhhj.hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj.hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj.ubjX)}(h h]h }(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj /hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj /ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj/modnameN classnameNjj)}j]j)}jj.sbc.gpiod_get_directionasbuh1hhj.ubjX)}(h h]h }(hj-/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj.ubj)}(hjh]h*}(hj;/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjo)}(hdesch]hdesc}(hjH/hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj.ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubah}(h]h ]h"]h$]h&]jjuh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj.hhhj.hMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1j9hj.hMhj.hhubj)}(hhh]h)}(h&return the current direction of a GPIOh]h&return the current direction of a GPIO}(hjr/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjo/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to get the direction of **Return** 0 for output, 1 for input, or an error code in case of error. **Description** This function may sleep if gpiod_cansleep() is true.h](h)}(h**Parameters**h]j)}(hj/h]h Parameters}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubj)}(hhh]j)}(h8``struct gpio_desc *desc`` GPIO to get the direction of h](j)}(h``struct gpio_desc *desc``h]j$)}(hj/h]hstruct gpio_desc *desc}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj/ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubj:)}(hhh]h)}(hGPIO to get the direction ofh]hGPIO to get the direction of}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1j9hj/ubeh}(h]h ]h"]h$]h&]uh1jhj/hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h **Return**h]j)}(hj/h]hReturn}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubh)}(h=0 for output, 1 for input, or an error code in case of error.h]h=0 for output, 1 for input, or an error code in case of error.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubh)}(h**Description**h]j)}(hj0h]h Description}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubh)}(h4This function may sleep if gpiod_cansleep() is true.h]h4This function may sleep if gpiod_cansleep() is true.}(hj+0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&gpiochip_query_valid_mask (C function)c.gpiochip_query_valid_maskhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hLconst unsigned long * gpiochip_query_valid_mask (const struct gpio_chip *gc)h]j@)}(hJconst unsigned long *gpiochip_query_valid_mask(const struct gpio_chip *gc)h](jF)}(hjh]hconst}(hjZ0hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjV0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjh0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjV0hhhjg0hMubj)}(hunsignedh]hunsigned}(hjv0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV0hhhjg0hMubjX)}(h h]h }(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjV0hhhjg0hMubj)}(hlongh]hlong}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV0hhhjg0hMubjX)}(h h]h }(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjV0hhhjg0hMubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjV0hhhjg0hMubji)}(hgpiochip_query_valid_maskh]jo)}(hgpiochip_query_valid_maskh]hgpiochip_query_valid_mask}(hj0hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj0ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjV0hhhjg0hMubj)}(h(const struct gpio_chip *gc)h]j)}(hconst struct gpio_chip *gch](jF)}(hjh]hconst}(hj0hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj0ubjX)}(h h]h }(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjF)}(hjIh]hstruct}(hj0hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj0ubjX)}(h h]h }(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj1hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj1modnameN classnameNjj)}j]j)}jj0sbc.gpiochip_query_valid_maskasbuh1hhj0ubjX)}(h h]h }(hj41hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubj)}(hjh]h*}(hjB1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjo)}(hgch]hgc}(hjO1hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj0ubah}(h]h ]h"]h$]h&]jjuh1jhjV0hhhjg0hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjR0hhhjg0hMubah}(h]jM0ah ](jjeh"]h$]h&]jj)jhuh1j9hjg0hMhjO0hhubj)}(hhh]h)}(h$return the GPIO validity informationh]h$return the GPIO validity information}(hjy1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjv1hhubah}(h]h ]h"]h$]h&]uh1jhjO0hhhjg0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``const struct gpio_chip *gc`` gpio chip which validity information is queried **Return** bitmap representing valid GPIOs or NULL if all GPIOs are valid **Description** Some GPIO chips may support configurations where some of the pins aren't available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.h](h)}(h**Parameters**h]j)}(hj1h]h Parameters}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM#hj1ubj)}(hhh]j)}(hO``const struct gpio_chip *gc`` gpio chip which validity information is queried h](j)}(h``const struct gpio_chip *gc``h]j$)}(hj1h]hconst struct gpio_chip *gc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj1ubj:)}(hhh]h)}(h/gpio chip which validity information is queriedh]h/gpio chip which validity information is queried}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1j9hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hM hj1ubah}(h]h ]h"]h$]h&]uh1jhj1ubh)}(h **Return**h]j)}(hj1h]hReturn}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM"hj1ubh)}(h>bitmap representing valid GPIOs or NULL if all GPIOs are validh]h>bitmap representing valid GPIOs or NULL if all GPIOs are valid}(hj 2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM"hj1ubh)}(h**Description**h]j)}(hj2h]h Description}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM$hj1ubh)}(hSome GPIO chips may support configurations where some of the pins aren't available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.h]hSome GPIO chips may support configurations where some of the pins aren’t available. These chips can have valid_mask set to represent the valid GPIOs. This function can be used to retrieve this information.}(hj22hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM#hj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiochip_get_data (C function)c.gpiochip_get_datahNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/void * gpiochip_get_data (struct gpio_chip *gc)h]j@)}(h-void *gpiochip_get_data(struct gpio_chip *gc)h](j)}(hvoidh]hvoid}(hja2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]2hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3ubjX)}(h h]h }(hjp2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj]2hhhjo2hM3ubj)}(hjh]h*}(hj~2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]2hhhjo2hM3ubji)}(hgpiochip_get_datah]jo)}(hgpiochip_get_datah]hgpiochip_get_data}(hj2hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj2ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj]2hhhjo2hM3ubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hj2hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj2ubjX)}(h h]h }(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj2hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj2modnameN classnameNjj)}j]j)}jj2sbc.gpiochip_get_dataasbuh1hhj2ubjX)}(h h]h }(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjo)}(hgch]hgc}(hj3hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj2ubah}(h]h ]h"]h$]h&]jjuh1jhj]2hhhjo2hM3ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjY2hhhjo2hM3ubah}(h]jT2ah ](jjeh"]h$]h&]jj)jhuh1j9hjo2hM3hjV2hhubj)}(hhh]h)}(h#get per-subdriver data for the chiph]h#get per-subdriver data for the chip}(hj.3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3hj+3hhubah}(h]h ]h"]h$]h&]uh1jhjV2hhhjo2hM3ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjF3jjF3jjjuh1j4hhhjhNhNubj)}(hf**Parameters** ``struct gpio_chip *gc`` GPIO chip **Return** The per-subdriver data for the chip.h](h)}(h**Parameters**h]j)}(hjP3h]h Parameters}(hjR3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM7hjJ3ubj)}(hhh]j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j$)}(hjo3h]hstruct gpio_chip *gc}(hjq3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjm3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM4hji3ubj:)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hM4hj3ubah}(h]h ]h"]h$]h&]uh1j9hji3ubeh}(h]h ]h"]h$]h&]uh1jhj3hM4hjf3ubah}(h]h ]h"]h$]h&]uh1jhjJ3ubh)}(h **Return**h]j)}(hj3h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM6hjJ3ubh)}(h$The per-subdriver data for the chip.h]h$The per-subdriver data for the chip.}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM6hjJ3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiochip_remove (C function)c.gpiochip_removehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h+void gpiochip_remove (struct gpio_chip *gc)h]j@)}(h*void gpiochip_remove(struct gpio_chip *gc)h](j)}(hvoidh]hvoid}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM[ubjX)}(h h]h }(hj3hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj3hhhj3hM[ubji)}(hgpiochip_removeh]jo)}(hgpiochip_removeh]hgpiochip_remove}(hj4hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj 4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj3hhhj3hM[ubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hj,4hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj(4ubjX)}(h h]h }(hj94hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(4ubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjJ4hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjG4ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjL4modnameN classnameNjj)}j]j)}jj4sbc.gpiochip_removeasbuh1hhj(4ubjX)}(h h]h }(hjj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(4ubj)}(hjh]h*}(hjx4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(4ubjo)}(hgch]hgc}(hj4hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj(4ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj$4ubah}(h]h ]h"]h$]h&]jjuh1jhj3hhhj3hM[ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj3hhhj3hM[ubah}(h]j3ah ](jjeh"]h$]h&]jj)jhuh1j9hj3hM[hj3hhubj)}(hhh]h)}(hunregister a gpio_chiph]hunregister a gpio_chip}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM[hj4hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hM[ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj4jj4jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_chip *gc`` the chip to unregister **Description** A gpio_chip with any GPIOs still requested may not be removed.h](h)}(h**Parameters**h]j)}(hj4h]h Parameters}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM_hj4ubj)}(hhh]j)}(h0``struct gpio_chip *gc`` the chip to unregister h](j)}(h``struct gpio_chip *gc``h]j$)}(hj4h]hstruct gpio_chip *gc}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM\hj4ubj:)}(hhh]h)}(hthe chip to unregisterh]hthe chip to unregister}(hj 5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5hM\hj5ubah}(h]h ]h"]h$]h&]uh1j9hj4ubeh}(h]h ]h"]h$]h&]uh1jhj5hM\hj4ubah}(h]h ]h"]h$]h&]uh1jhj4ubh)}(h**Description**h]j)}(hj+5h]h Description}(hj-5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj)5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM^hj4ubh)}(h>A gpio_chip with any GPIOs still requested may not be removed.h]h>A gpio_chip with any GPIOs still requested may not be removed.}(hjA5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM]hj4ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpio_device_find (C function)c.gpio_device_findhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hnstruct gpio_device * gpio_device_find (const void *data, int (*match)(struct gpio_chip *gc, const void *data))h]j@)}(hlstruct gpio_device *gpio_device_find(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](jF)}(hjIh]hstruct}(hjp5hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjl5hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj~5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjl5hhhj}5hMubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj5hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj5ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj5modnameN classnameNjj)}j]j)}jgpio_device_findsbc.gpio_device_findasbuh1hhjl5hhhj}5hMubjX)}(h h]h }(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjl5hhhj}5hMubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjl5hhhj}5hMubji)}(hgpio_device_findh]jo)}(hj5h]hgpio_device_find}(hj5hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjl5hhhj}5hMubj)}(hH(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](j)}(hconst void *datah](jF)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj5ubjX)}(h h]h }(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubj)}(hvoidh]hvoid}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjX)}(h h]h }(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubj)}(hjh]h*}(hj!6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjo)}(hdatah]hdata}(hj.6hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubj)}(h4int (*match)(struct gpio_chip *gc, const void *data)h](j)}(hinth]hint}(hjG6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjX)}(h h]h }(hjU6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubj)}(h(h]h(}(hjc6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubj)}(hjh]h*}(hjq6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjo)}(hmatchh]hmatch}(hj~6hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjC6ubj)}(h)h]h)}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubj)}(hje6h]h(}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjF)}(hjIh]hstruct}(hj6hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjC6ubjX)}(h h]h }(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj6hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj6ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j5c.gpio_device_findasbuh1hhjC6ubjX)}(h h]h }(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjo)}(hgch]hgc}(hj6hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjC6ubj)}(h,h]h,}(hj 7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjX)}(h h]h }(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubjF)}(hjh]hconst}(hj(7hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjC6ubjX)}(h h]h }(hj57hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubj)}(hvoidh]hvoid}(hjC7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjX)}(h h]h }(hjQ7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjC6ubj)}(hjh]h*}(hj_7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubjo)}(hdatah]hdata}(hjl7hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjC6ubj)}(hj6h]h)}(hjz7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjC6ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj5ubeh}(h]h ]h"]h$]h&]jjuh1jhjl5hhhj}5hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjh5hhhj}5hMubah}(h]jc5ah ](jjeh"]h$]h&]jj)jhuh1j9hj}5hMhje5hhubj)}(hhh]h)}(hfind a specific GPIO deviceh]hfind a specific GPIO device}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7hhubah}(h]h ]h"]h$]h&]uh1jhje5hhhj}5hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1j4hhhjhNhNubj)}(hXZ**Parameters** ``const void *data`` data to pass to match function ``int (*match)(struct gpio_chip *gc, const void *data)`` Callback function to check gpio_chip **Return** New reference to struct gpio_device. **Description** Similar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices. The callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented. If the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().h](h)}(h**Parameters**h]j)}(hj7h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubj)}(hhh](j)}(h4``const void *data`` data to pass to match function h](j)}(h``const void *data``h]j$)}(hj7h]hconst void *data}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj7ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubj:)}(hhh]h)}(hdata to pass to match functionh]hdata to pass to match function}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj7ubah}(h]h ]h"]h$]h&]uh1j9hj7ubeh}(h]h ]h"]h$]h&]uh1jhj7hMhj7ubj)}(h^``int (*match)(struct gpio_chip *gc, const void *data)`` Callback function to check gpio_chip h](j)}(h8``int (*match)(struct gpio_chip *gc, const void *data)``h]j$)}(hj8h]h4int (*match)(struct gpio_chip *gc, const void *data)}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj8ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj8ubj:)}(hhh]h)}(h$Callback function to check gpio_chiph]h$Callback function to check gpio_chip}(hj68hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj28hMhj38ubah}(h]h ]h"]h$]h&]uh1j9hj8ubeh}(h]h ]h"]h$]h&]uh1jhj28hMhj7ubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h **Return**h]j)}(hjX8h]hReturn}(hjZ8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubh)}(h$New reference to struct gpio_device.h]h$New reference to struct gpio_device.}(hjn8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubh)}(h**Description**h]j)}(hj8h]h Description}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubh)}(hXBSimilar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied **match** callback. The callback should return 0 if the device doesn't match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices.h](hgSimilar to bus_find_device(). It returns a reference to a gpio_device as determined by a user supplied }(hj8hhhNhNubj)}(h **match**h]hmatch}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubh callback. The callback should return 0 if the device doesn’t match and non-zero if it does. If the callback returns non-zero, this function will return to the caller and not iterate over any more gpio_devices.}(hj8hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubh)}(hThe callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented.h]hThe callback takes the GPIO chip structure as argument. During the execution of the callback function the chip is protected from being freed. TODO: This actually has yet to be implemented.}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubh)}(hmIf the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().h]hmIf the function returns non-NULL, the returned reference must be freed by the caller using gpio_device_put().}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&gpio_device_find_by_label (C function)c.gpio_device_find_by_labelhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hBstruct gpio_device * gpio_device_find_by_label (const char *label)h]j@)}(h@struct gpio_device *gpio_device_find_by_label(const char *label)h](jF)}(hjIh]hstruct}(hj8hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj8hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8hhhj9hMubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj9hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj9modnameN classnameNjj)}j]j)}jgpio_device_find_by_labelsbc.gpio_device_find_by_labelasbuh1hhj8hhhj9hMubjX)}(h h]h }(hj49hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj8hhhj9hMubj)}(hjh]h*}(hjB9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj9hMubji)}(hgpio_device_find_by_labelh]jo)}(hj19h]hgpio_device_find_by_label}(hjS9hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjO9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj8hhhj9hMubj)}(h(const char *label)h]j)}(hconst char *labelh](jF)}(hjh]hconst}(hjn9hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjj9ubjX)}(h h]h }(hj{9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjj9ubj)}(hcharh]hchar}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj9ubjX)}(h h]h }(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjj9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjj9ubjo)}(hlabelh]hlabel}(hj9hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjf9ubah}(h]h ]h"]h$]h&]jjuh1jhj8hhhj9hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj8hhhj9hMubah}(h]j8ah ](jjeh"]h$]h&]jj)jhuh1j9hj9hMhj8hhubj)}(hhh]h)}(hUwrapper around gpio_device_find() finding the GPIO device by its backing chip's labelh]hWwrapper around gpio_device_find() finding the GPIO device by its backing chip’s label}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj9hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj9jj9jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const char *label`` Label to lookup **Return** Reference to the GPIO device or NULL. Reference must be released with gpio_device_put().h](h)}(h**Parameters**h]j)}(hj9h]h Parameters}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj9ubj)}(hhh]j)}(h&``const char *label`` Label to lookup h](j)}(h``const char *label``h]j$)}(hj:h]hconst char *label}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj:ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj:ubj:)}(hhh]h)}(hLabel to lookuph]hLabel to lookup}(hj6:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2:hMhj3:ubah}(h]h ]h"]h$]h&]uh1j9hj:ubeh}(h]h ]h"]h$]h&]uh1jhj2:hMhj:ubah}(h]h ]h"]h$]h&]uh1jhj9ubh)}(h **Return**h]j)}(hjX:h]hReturn}(hjZ:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjV:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj9ubh)}(hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().h]hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().}(hjn:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj9ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0'gpio_device_find_by_fwnode (C function)c.gpio_device_find_by_fwnodehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hTstruct gpio_device * gpio_device_find_by_fwnode (const struct fwnode_handle *fwnode)h]j@)}(hRstruct gpio_device *gpio_device_find_by_fwnode(const struct fwnode_handle *fwnode)h](jF)}(hjIh]hstruct}(hj:hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj:hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:hhhj:hMubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj:hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj:modnameN classnameNjj)}j]j)}jgpio_device_find_by_fwnodesbc.gpio_device_find_by_fwnodeasbuh1hhj:hhhj:hMubjX)}(h h]h }(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:hhhj:hMubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMubji)}(hgpio_device_find_by_fwnodeh]jo)}(hj:h]hgpio_device_find_by_fwnode}(hj:hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj:ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj:hhhj:hMubj)}(h$(const struct fwnode_handle *fwnode)h]j)}(h"const struct fwnode_handle *fwnodeh](jF)}(hjh]hconst}(hj;hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj;ubjX)}(h h]h }(hj$;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubjF)}(hjIh]hstruct}(hj2;hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj;ubjX)}(h h]h }(hj?;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubh)}(hhh]jo)}(h fwnode_handleh]h fwnode_handle}(hjP;hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjM;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjR;modnameN classnameNjj)}j]j:c.gpio_device_find_by_fwnodeasbuh1hhj;ubjX)}(h h]h }(hjn;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubj)}(hjh]h*}(hj|;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjo)}(hfwnodeh]hfwnode}(hj;hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj;ubah}(h]h ]h"]h$]h&]jjuh1jhj:hhhj:hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj:hhhj:hMubah}(h]j:ah ](jjeh"]h$]h&]jj)jhuh1j9hj:hMhj:hhubj)}(hhh]h)}(hGwrapper around gpio_device_find() finding the GPIO device by its fwnodeh]hGwrapper around gpio_device_find() finding the GPIO device by its fwnode}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct fwnode_handle *fwnode`` Firmware node to lookup **Return** Reference to the GPIO device or NULL. Reference must be released with gpio_device_put().h](h)}(h**Parameters**h]j)}(hj;h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj;ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;ubj)}(hhh]j)}(h?``const struct fwnode_handle *fwnode`` Firmware node to lookup h](j)}(h&``const struct fwnode_handle *fwnode``h]j$)}(hj;h]h"const struct fwnode_handle *fwnode}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj;ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;ubj:)}(hhh]h)}(hFirmware node to lookuph]hFirmware node to lookup}(hj <hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj <hMhj <ubah}(h]h ]h"]h$]h&]uh1j9hj;ubeh}(h]h ]h"]h$]h&]uh1jhj <hMhj;ubah}(h]h ]h"]h$]h&]uh1jhj;ubh)}(h **Return**h]j)}(hj/<h]hReturn}(hj1<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj-<ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;ubh)}(hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().h]hXReference to the GPIO device or NULL. Reference must be released with gpio_device_put().}(hjE<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpio_device_get (C function)c.gpio_device_gethNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h?struct gpio_device * gpio_device_get (struct gpio_device *gdev)h]j@)}(h=struct gpio_device *gpio_device_get(struct gpio_device *gdev)h](jF)}(hjIh]hstruct}(hjt<hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjp<hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjp<hhhj<hMubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj<hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj<modnameN classnameNjj)}j]j)}jgpio_device_getsbc.gpio_device_getasbuh1hhjp<hhhj<hMubjX)}(h h]h }(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjp<hhhj<hMubj)}(hjh]h*}(hj<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjp<hhhj<hMubji)}(hgpio_device_geth]jo)}(hj<h]hgpio_device_get}(hj<hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj<ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjp<hhhj<hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hj<hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj<ubjX)}(h h]h }(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj =hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj =ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj=modnameN classnameNjj)}j]j<c.gpio_device_getasbuh1hhj<ubjX)}(h h]h }(hj*=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<ubj)}(hjh]h*}(hj8=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjo)}(hgdevh]hgdev}(hjE=hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj<ubah}(h]h ]h"]h$]h&]jjuh1jhjp<hhhj<hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjl<hhhj<hMubah}(h]jg<ah ](jjeh"]h$]h&]jj)jhuh1j9hj<hMhji<hhubj)}(hhh]h)}(h0Increase the reference count of this GPIO deviceh]h0Increase the reference count of this GPIO device}(hjo=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjl=hhubah}(h]h ]h"]h$]h&]uh1jhji<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj=jj=jjjuh1j4hhhjhNhNubj)}(hy**Parameters** ``struct gpio_device *gdev`` GPIO device to increase the refcount for **Return** Pointer to **gdev**.h](h)}(h**Parameters**h]j)}(hj=h]h Parameters}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=ubj)}(hhh]j)}(hF``struct gpio_device *gdev`` GPIO device to increase the refcount for h](j)}(h``struct gpio_device *gdev``h]j$)}(hj=h]hstruct gpio_device *gdev}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj=ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=ubj:)}(hhh]h)}(h(GPIO device to increase the refcount forh]h(GPIO device to increase the refcount for}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1j9hj=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhj=ubah}(h]h ]h"]h$]h&]uh1jhj=ubh)}(h **Return**h]j)}(hj=h]hReturn}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=ubh)}(hPointer to **gdev**.h](h Pointer to }(hj>hhhNhNubj)}(h**gdev**h]hgdev}(hj >hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpio_device_put (C function)c.gpio_device_puthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/void gpio_device_put (struct gpio_device *gdev)h]j@)}(h.void gpio_device_put(struct gpio_device *gdev)h](j)}(hvoidh]hvoid}(hjB>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>>hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjQ>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>>hhhjP>hMubji)}(hgpio_device_puth]jo)}(hgpio_device_puth]hgpio_device_put}(hjc>hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj_>ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj>>hhhjP>hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hj>hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj{>ubjX)}(h h]h }(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{>ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj>hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj>ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj>modnameN classnameNjj)}j]j)}jje>sbc.gpio_device_putasbuh1hhj{>ubjX)}(h h]h }(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{>ubjo)}(hgdevh]hgdev}(hj>hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj{>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjw>ubah}(h]h ]h"]h$]h&]jjuh1jhj>>hhhjP>hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj:>hhhjP>hMubah}(h]j5>ah ](jjeh"]h$]h&]jj)jhuh1j9hjP>hMhj7>hhubj)}(hhh]h)}(hdDecrease the reference count of this GPIO device and possibly free all resources associated with it.h]hdDecrease the reference count of this GPIO device and possibly free all resources associated with it.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj7>hhhjP>hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj?jj?jjjuh1j4hhhjhNhNubj)}(h^**Parameters** ``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](h)}(h**Parameters**h]j)}(hj$?h]h Parameters}(hj&?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj"?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj?ubj)}(hhh]j)}(hL``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](j)}(h``struct gpio_device *gdev``h]j$)}(hjC?h]hstruct gpio_device *gdev}(hjE?hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjA?ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=?ubj:)}(hhh]h)}(h/GPIO device to decrease the reference count forh]h/GPIO device to decrease the reference count for}(hj\?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjY?ubah}(h]h ]h"]h$]h&]uh1j9hj=?ubeh}(h]h ]h"]h$]h&]uh1jhjX?hMhj:?ubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"gpio_device_to_device (C function)c.gpio_device_to_devicehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h@struct device * gpio_device_to_device (struct gpio_device *gdev)h]j@)}(h>struct device *gpio_device_to_device(struct gpio_device *gdev)h](jF)}(hjIh]hstruct}(hj?hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj?hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?hhhj?hMubh)}(hhh]jo)}(hdeviceh]hdevice}(hj?hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj?modnameN classnameNjj)}j]j)}jgpio_device_to_devicesbc.gpio_device_to_deviceasbuh1hhj?hhhj?hMubjX)}(h h]h }(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?hhhj?hMubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhhj?hMubji)}(hgpio_device_to_deviceh]jo)}(hj?h]hgpio_device_to_device}(hj?hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj?ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj?hhhj?hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](jF)}(hjIh]hstruct}(hj@hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj@ubjX)}(h h]h }(hj$@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@ubh)}(hhh]jo)}(h gpio_deviceh]h gpio_device}(hj5@hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj2@ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj7@modnameN classnameNjj)}j]j?c.gpio_device_to_deviceasbuh1hhj@ubjX)}(h h]h }(hjS@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj@ubj)}(hjh]h*}(hja@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj@ubjo)}(hgdevh]hgdev}(hjn@hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj@ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj@ubah}(h]h ]h"]h$]h&]jjuh1jhj?hhhj?hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj?hhhj?hMubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1j9hj?hMhj?hhubj)}(hhh]h)}(h5Retrieve the address of the underlying struct device.h]h5Retrieve the address of the underlying struct device.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@jj@jjjuh1j4hhhjhNhNubj)}(hX **Parameters** ``struct gpio_device *gdev`` GPIO device for which to return the address. **Description** This does not increase the reference count of the GPIO device nor the underlying struct device. **Return** Address of struct device backing this GPIO device.h](h)}(h**Parameters**h]j)}(hj@h]h Parameters}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@ubj)}(hhh]j)}(hJ``struct gpio_device *gdev`` GPIO device for which to return the address. h](j)}(h``struct gpio_device *gdev``h]j$)}(hj@h]hstruct gpio_device *gdev}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj@ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@ubj:)}(hhh]h)}(h,GPIO device for which to return the address.h]h,GPIO device for which to return the address.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1j9hj@ubeh}(h]h ]h"]h$]h&]uh1jhj@hMhj@ubah}(h]h ]h"]h$]h&]uh1jhj@ubh)}(h**Description**h]j)}(hjAh]h Description}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@ubh)}(h_This does not increase the reference count of the GPIO device nor the underlying struct device.h]h_This does not increase the reference count of the GPIO device nor the underlying struct device.}(hj*AhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@ubh)}(h **Return**h]j)}(hj;Ah]hReturn}(hj=AhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9Aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj@ubh)}(h2Address of struct device backing this GPIO device.h]h2Address of struct device backing this GPIO device.}(hjQAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj@ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0(gpiochip_irqchip_add_domain (C function)c.gpiochip_irqchip_add_domainhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hQint gpiochip_irqchip_add_domain (struct gpio_chip *gc, struct irq_domain *domain)h]j@)}(hPint gpiochip_irqchip_add_domain(struct gpio_chip *gc, struct irq_domain *domain)h](j)}(hinth]hint}(hjAhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|Ahhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|AhhhjAhM ubji)}(hgpiochip_irqchip_add_domainh]jo)}(hgpiochip_irqchip_add_domainh]hgpiochip_irqchip_add_domain}(hjAhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjAubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj|AhhhjAhM ubj)}(h1(struct gpio_chip *gc, struct irq_domain *domain)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjAhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjAubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjAhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjAubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]j)}jjAsbc.gpiochip_irqchip_add_domainasbuh1hhjAubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAubj)}(hjh]h*}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAubjo)}(hgch]hgc}(hjBhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjAubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjAubj)}(hstruct irq_domain *domainh](jF)}(hjIh]hstruct}(hj/BhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj+BubjX)}(h h]h }(hj pin mappingh]h$add a range for GPIO <-> pin mapping}(hj4LhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMk hj1Lhhubah}(h]h ]h"]h$]h&]uh1jhjKJhhhjdJhMk ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjLLjjLLjjjuh1j4hhhjhNhNubj)}(hXf**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the range for ``struct pinctrl_dev *pctldev`` the pin controller to map to ``unsigned int gpio_offset`` the start offset in the current gpio_chip number space ``const char *pin_group`` name of the pin group inside the pin controller **Description** Calling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjVLh]h Parameters}(hjXLhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMo hjPLubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j$)}(hjuLh]hstruct gpio_chip *gc}(hjwLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjsLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMl hjoLubj:)}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMl hjLubah}(h]h ]h"]h$]h&]uh1j9hjoLubeh}(h]h ]h"]h$]h&]uh1jhjLhMl hjlLubj)}(h=``struct pinctrl_dev *pctldev`` the pin controller to map to h](j)}(h``struct pinctrl_dev *pctldev``h]j$)}(hjLh]hstruct pinctrl_dev *pctldev}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMm hjLubj:)}(hhh]h)}(hthe pin controller to map toh]hthe pin controller to map to}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMm hjLubah}(h]h ]h"]h$]h&]uh1j9hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMm hjlLubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j$)}(hjLh]hunsigned int gpio_offset}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMn hjLubj:)}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMn hjLubah}(h]h ]h"]h$]h&]uh1j9hjLubeh}(h]h ]h"]h$]h&]uh1jhjLhMn hjlLubj)}(hJ``const char *pin_group`` name of the pin group inside the pin controller h](j)}(h``const char *pin_group``h]j$)}(hj Mh]hconst char *pin_group}(hj"MhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMo hjMubj:)}(hhh]h)}(h/name of the pin group inside the pin controllerh]h/name of the pin group inside the pin controller}(hj9MhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj5MhMo hj6Mubah}(h]h ]h"]h$]h&]uh1j9hjMubeh}(h]h ]h"]h$]h&]uh1jhj5MhMo hjlLubeh}(h]h ]h"]h$]h&]uh1jhjPLubh)}(h**Description**h]j)}(hj[Mh]h Description}(hj]MhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMq hjPLubh)}(hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property.h]hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the “gpio-ranges” property.}(hjqMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMp hjPLubh)}(h **Return**h]j)}(hjMh]hReturn}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMu hjPLubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMv hjPLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0-gpiochip_add_pin_range_with_pins (C function)"c.gpiochip_add_pin_range_with_pinshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiochip_add_pin_range_with_pins (struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int const *pins, unsigned int npins)h]j@)}(hint gpiochip_add_pin_range_with_pins(struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int const *pins, unsigned int npins)h](j)}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjMhhhjMhM ubji)}(h gpiochip_add_pin_range_with_pinsh]jo)}(h gpiochip_add_pin_range_with_pinsh]h gpiochip_add_pin_range_with_pins}(hjMhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjMubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjMhhhjMhM ubj)}(h(struct gpio_chip *gc, const char *pinctl_name, unsigned int gpio_offset, unsigned int pin_offset, unsigned int const *pins, unsigned int npins)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjNhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjNubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hj"NhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjNubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$NmodnameN classnameNjj)}j]j)}jjMsb"c.gpiochip_add_pin_range_with_pinsasbuh1hhjNubjX)}(h h]h }(hjBNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubj)}(hjh]h*}(hjPNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjo)}(hgch]hgc}(hj]NhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hconst char *pinctl_nameh](jF)}(hjh]hconst}(hjvNhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjrNubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrNubj)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrNubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrNubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrNubjo)}(h pinctl_nameh]h pinctl_name}(hjNhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjrNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned int gpio_offseth](j)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubj)}(hinth]hint}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNubjo)}(h gpio_offseth]h gpio_offset}(hj OhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjNubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned int pin_offseth](j)}(hunsignedh]hunsigned}(hj$OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj OubjX)}(h h]h }(hj2OhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj Oubj)}(hinth]hint}(hj@OhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj OubjX)}(h h]h }(hjNOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj Oubjo)}(h pin_offseth]h pin_offset}(hj\OhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj Oubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned int const *pinsh](j)}(hunsignedh]hunsigned}(hjuOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqOubjX)}(h h]h }(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqOubj)}(hinth]hint}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqOubjX)}(h h]h }(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqOubjF)}(hjh]hconst}(hjOhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjqOubjX)}(h h]h }(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqOubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqOubjo)}(hpinsh]hpins}(hjOhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjqOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubj)}(hunsigned int npinsh](j)}(hunsignedh]hunsigned}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjX)}(h h]h }(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOubj)}(hinth]hint}(hj PhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOubjX)}(h h]h }(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOubjo)}(hnpinsh]hnpins}(hj&PhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjOubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjMubeh}(h]h ]h"]h$]h&]jjuh1jhjMhhhjMhM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjMhhhjMhM ubah}(h]jMah ](jjeh"]h$]h&]jj)jhuh1j9hjMhM hjMhhubj)}(hhh]h)}(h$add a range for GPIO <-> pin mappingh]h$add a range for GPIO <-> pin mapping}(hjPPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjMPhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjMhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjhPjjhPjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the range for ``const char *pinctl_name`` the dev_name() of the pin controller to map to ``unsigned int gpio_offset`` the start offset in the current gpio_chip number space ``unsigned int pin_offset`` the start offset in the pin controller number space ``unsigned int const *pins`` the list of non consecutive pins to accumulate in this range (if not NULL, pin_offset is ignored by pinctrl core) ``unsigned int npins`` the number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range **Description** Calling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property. **Return** 0 on success, or a negative errno on failure.h](h)}(h**Parameters**h]j)}(hjrPh]h Parameters}(hjtPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjpPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjlPubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j$)}(hjPh]hstruct gpio_chip *gc}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjPubj:)}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hjPubah}(h]h ]h"]h$]h&]uh1j9hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjPubj)}(hK``const char *pinctl_name`` the dev_name() of the pin controller to map to h](j)}(h``const char *pinctl_name``h]j$)}(hjPh]hconst char *pinctl_name}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjPubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjPubj:)}(hhh]h)}(h.the dev_name() of the pin controller to map toh]h.the dev_name() of the pin controller to map to}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hjPubah}(h]h ]h"]h$]h&]uh1j9hjPubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjPubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j$)}(hjQh]hunsigned int gpio_offset}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjPubj:)}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhM hjQubah}(h]h ]h"]h$]h&]uh1j9hjPubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjPubj)}(hP``unsigned int pin_offset`` the start offset in the pin controller number space h](j)}(h``unsigned int pin_offset``h]j$)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj:Qubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj6Qubj:)}(hhh]h)}(h3the start offset in the pin controller number spaceh]h3the start offset in the pin controller number space}(hjUQhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQQhM hjRQubah}(h]h ]h"]h$]h&]uh1j9hj6Qubeh}(h]h ]h"]h$]h&]uh1jhjQQhM hjPubj)}(h``unsigned int const *pins`` the list of non consecutive pins to accumulate in this range (if not NULL, pin_offset is ignored by pinctrl core) h](j)}(h``unsigned int const *pins``h]j$)}(hjuQh]hunsigned int const *pins}(hjwQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjsQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjoQubj:)}(hhh]h)}(hqthe list of non consecutive pins to accumulate in this range (if not NULL, pin_offset is ignored by pinctrl core)h]hqthe list of non consecutive pins to accumulate in this range (if not NULL, pin_offset is ignored by pinctrl core)}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjQubah}(h]h ]h"]h$]h&]uh1j9hjoQubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjPubj)}(h``unsigned int npins`` the number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range h](j)}(h``unsigned int npins``h]j$)}(hjQh]hunsigned int npins}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjQubj:)}(hhh]h)}(hjthe number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this rangeh]hjthe number of pins from the offset of each pin space (GPIO and pin controller) to accumulate in this range}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjQubah}(h]h ]h"]h$]h&]uh1j9hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhM hjPubeh}(h]h ]h"]h$]h&]uh1jhjlPubh)}(h**Description**h]j)}(hjQh]h Description}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjlPubh)}(hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the "gpio-ranges" property.h]hCalling this function directly from a DeviceTree-supported pinctrl driver is DEPRECATED. Please see Section 2.1 of Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and gpio drivers via the “gpio-ranges” property.}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjlPubh)}(h **Return**h]j)}(hjRh]hReturn}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjlPubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hj(RhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjlPubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0'gpiochip_remove_pin_ranges (C function)c.gpiochip_remove_pin_rangeshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h6void gpiochip_remove_pin_ranges (struct gpio_chip *gc)h]j@)}(h5void gpiochip_remove_pin_ranges(struct gpio_chip *gc)h](j)}(hvoidh]hvoid}(hjWRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSRhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjfRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSRhhhjeRhM ubji)}(hgpiochip_remove_pin_rangesh]jo)}(hgpiochip_remove_pin_rangesh]hgpiochip_remove_pin_ranges}(hjxRhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtRubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjSRhhhjeRhM ubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjRhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjRubjX)}(h h]h }(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjRhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjRubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjRmodnameN classnameNjj)}j]j)}jjzRsbc.gpiochip_remove_pin_rangesasbuh1hhjRubjX)}(h h]h }(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjRubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjo)}(hgch]hgc}(hjRhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjRubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjRubah}(h]h ]h"]h$]h&]jjuh1jhjSRhhhjeRhM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjORhhhjeRhM ubah}(h]jJRah ](jjeh"]h$]h&]jj)jhuh1j9hjeRhM hjLRhhubj)}(hhh]h)}(h$remove all the GPIO <-> pin mappingsh]h$remove all the GPIO <-> pin mappings}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjLRhhhjeRhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/Sjj/Sjjjuh1j4hhhjhNhNubj)}(hR**Parameters** ``struct gpio_chip *gc`` the chip to remove all the mappings forh](h)}(h**Parameters**h]j)}(hj9Sh]h Parameters}(hj;ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7Subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj3Subj)}(hhh]j)}(h@``struct gpio_chip *gc`` the chip to remove all the mappings forh](j)}(h``struct gpio_chip *gc``h]j$)}(hjXSh]hstruct gpio_chip *gc}(hjZShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjRSubj:)}(hhh]h)}(h'the chip to remove all the mappings forh]h'the chip to remove all the mappings for}(hjqShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjnSubah}(h]h ]h"]h$]h&]uh1j9hjRSubeh}(h]h ]h"]h$]h&]uh1jhjmShM hjOSubah}(h]h ]h"]h$]h&]uh1jhj3Subeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0$gpiochip_dup_line_label (C function)c.gpiochip_dup_line_labelhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hJchar * gpiochip_dup_line_label (struct gpio_chip *gc, unsigned int offset)h]j@)}(hHchar *gpiochip_dup_line_label(struct gpio_chip *gc, unsigned int offset)h](j)}(hcharh]hchar}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMg ubjX)}(h h]h }(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjShhhjShMg ubj)}(hjh]h*}(hjShhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhhjShMg ubji)}(hgpiochip_dup_line_labelh]jo)}(hgpiochip_dup_line_labelh]hgpiochip_dup_line_label}(hjShhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjSubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjShhhjShMg ubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjShhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSubjX)}(h h]h }(hj ThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j)}jjSsbc.gpiochip_dup_line_labelasbuh1hhjSubjX)}(h h]h }(hj:ThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubj)}(hjh]h*}(hjHThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjo)}(hgch]hgc}(hjUThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjnThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjTubjX)}(h h]h }(hj|ThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjjTubj)}(hinth]hint}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjTubjX)}(h h]h }(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjjTubjo)}(hoffseth]hoffset}(hjThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjjTubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjShhhjShMg ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjShhhjShMg ubah}(h]jSah ](jjeh"]h$]h&]jj)jhuh1j9hjShMg hjShhubj)}(hhh]h)}(h!Get a copy of the consumer label.h]h!Get a copy of the consumer label.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMg hjThhubah}(h]h ]h"]h$]h&]uh1jhjShhhjShMg ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjTjjTjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` GPIO chip controlling this line. ``unsigned int offset`` Hardware offset of the line. **Return** Pointer to a copy of the consumer label if the line is requested or NULL if it's not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns ``ENOMEM``. **Description** Must not be called from atomic context.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMk hjTubj)}(hhh](j)}(h:``struct gpio_chip *gc`` GPIO chip controlling this line. h](j)}(h``struct gpio_chip *gc``h]j$)}(hjUh]hstruct gpio_chip *gc}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMh hj Uubj:)}(hhh]h)}(h GPIO chip controlling this line.h]h GPIO chip controlling this line.}(hj*UhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&UhMh hj'Uubah}(h]h ]h"]h$]h&]uh1j9hj Uubeh}(h]h ]h"]h$]h&]uh1jhj&UhMh hjUubj)}(h5``unsigned int offset`` Hardware offset of the line. h](j)}(h``unsigned int offset``h]j$)}(hjJUh]hunsigned int offset}(hjLUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjHUubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMi hjDUubj:)}(hhh]h)}(hHardware offset of the line.h]hHardware offset of the line.}(hjcUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_UhMi hj`Uubah}(h]h ]h"]h$]h&]uh1j9hjDUubeh}(h]h ]h"]h$]h&]uh1jhj_UhMi hjUubeh}(h]h ]h"]h$]h&]uh1jhjTubh)}(h **Return**h]j)}(hjUh]hReturn}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMk hjTubh)}(hPointer to a copy of the consumer label if the line is requested or NULL if it's not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns ``ENOMEM``.h](hPointer to a copy of the consumer label if the line is requested or NULL if it’s not. If a valid pointer was returned, it must be freed using kfree(). In case of a memory allocation error, the function returns }(hjUhhhNhNubj$)}(h ``ENOMEM``h]hENOMEM}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjUubh.}(hjUhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMk hjTubh)}(h**Description**h]j)}(hjUh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMo hjTubh)}(h'Must not be called from atomic context.h]h'Must not be called from atomic context.}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMo hjTubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&gpiochip_request_own_desc (C function)c.gpiochip_request_own_deschNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hstruct gpio_desc * gpiochip_request_own_desc (struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h]j@)}(hstruct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h](jF)}(hjIh]hstruct}(hjVhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjUhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUhhhjVhM ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj"VhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj$VmodnameN classnameNjj)}j]j)}jgpiochip_request_own_descsbc.gpiochip_request_own_descasbuh1hhjUhhhjVhM ubjX)}(h h]h }(hjCVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUhhhjVhM ubj)}(hjh]h*}(hjQVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUhhhjVhM ubji)}(hgpiochip_request_own_desch]jo)}(hj@Vh]hgpiochip_request_own_desc}(hjbVhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj^Vubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjUhhhjVhM ubj)}(hu(struct gpio_chip *gc, unsigned int hwnum, const char *label, enum gpio_lookup_flags lflags, enum gpiod_flags dflags)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hj}VhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjyVubjX)}(h h]h }(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyVubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjVhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjVubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j>Vc.gpiochip_request_own_descasbuh1hhjyVubjX)}(h h]h }(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyVubj)}(hjh]h*}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyVubjo)}(hgch]hgc}(hjVhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjyVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuVubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjX)}(h h]h }(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubj)}(hinth]hint}(hj WhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjX)}(h h]h }(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubjo)}(hhwnumh]hhwnum}(hj%WhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuVubj)}(hconst char *labelh](jF)}(hjh]hconst}(hj>WhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj:WubjX)}(h h]h }(hjKWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:Wubj)}(hcharh]hchar}(hjYWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:WubjX)}(h h]h }(hjgWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:Wubj)}(hjh]h*}(hjuWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:Wubjo)}(hlabelh]hlabel}(hjWhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj:Wubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuVubj)}(henum gpio_lookup_flags lflagsh](jF)}(henumh]henum}(hjWhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjWubjX)}(h h]h }(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubh)}(hhh]jo)}(hgpio_lookup_flagsh]hgpio_lookup_flags}(hjWhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjWmodnameN classnameNjj)}j]j>Vc.gpiochip_request_own_descasbuh1hhjWubjX)}(h h]h }(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjo)}(hlflagsh]hlflags}(hjWhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuVubj)}(henum gpiod_flags dflagsh](jF)}(hjWh]henum}(hjWhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjWubjX)}(h h]h }(hj XhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjXhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjXmodnameN classnameNjj)}j]j>Vc.gpiochip_request_own_descasbuh1hhjWubjX)}(h h]h }(hj;XhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubjo)}(hdflagsh]hdflags}(hjIXhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjuVubeh}(h]h ]h"]h$]h&]jjuh1jhjUhhhjVhM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjUhhhjVhM ubah}(h]jUah ](jjeh"]h$]h&]jj)jhuh1j9hjVhM hjUhhubj)}(hhh]h)}(h-Allow GPIO chip to request its own descriptorh]h-Allow GPIO chip to request its own descriptor}(hjsXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjpXhhubah}(h]h ]h"]h$]h&]uh1jhjUhhhjVhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjXjjXjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` GPIO chip ``unsigned int hwnum`` hardware number of the GPIO for which to request the descriptor ``const char *label`` label for the GPIO ``enum gpio_lookup_flags lflags`` lookup flags for this GPIO or 0 if default, this can be used to specify things like line inversion semantics with the machine flags such as GPIO_OUT_LOW ``enum gpiod_flags dflags`` descriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drain **Description** Function allows GPIO chip drivers to request and use their own GPIO descriptors via gpiolib API. Difference to gpiod_request() is that this function will not increase reference count of the GPIO chip module. This allows the GPIO chip module to be unloaded as needed (we assume that the GPIO chip driver handles freeing the GPIOs it has requested). **Return** A pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.h](h)}(h**Parameters**h]j)}(hjXh]h Parameters}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjXubj)}(hhh](j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j$)}(hjXh]hstruct gpio_chip *gc}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjXubj:)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM hjXubah}(h]h ]h"]h$]h&]uh1j9hjXubeh}(h]h ]h"]h$]h&]uh1jhjXhM hjXubj)}(hW``unsigned int hwnum`` hardware number of the GPIO for which to request the descriptor h](j)}(h``unsigned int hwnum``h]j$)}(hjXh]hunsigned int hwnum}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjXubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjXubj:)}(hhh]h)}(h?hardware number of the GPIO for which to request the descriptorh]h?hardware number of the GPIO for which to request the descriptor}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjYhM hjYubah}(h]h ]h"]h$]h&]uh1j9hjXubeh}(h]h ]h"]h$]h&]uh1jhjYhM hjXubj)}(h)``const char *label`` label for the GPIO h](j)}(h``const char *label``h]j$)}(hj&Yh]hconst char *label}(hj(YhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$Yubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj Yubj:)}(hhh]h)}(hlabel for the GPIOh]hlabel for the GPIO}(hj?YhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;YhM hjint gpiod_direction_output (struct gpio_desc *desc, int value)h]j@)}(h=int gpiod_direction_output(struct gpio_desc *desc, int value)h](j)}(hinth]hint}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|_hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|_hhhj_hM ubji)}(hgpiod_direction_outputh]jo)}(hgpiod_direction_outputh]hgpiod_direction_output}(hj_hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj_ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj|_hhhj_hM ubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj_hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj_ubjX)}(h h]h }(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj_hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj_ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j)}jj_sbc.gpiod_direction_outputasbuh1hhj_ubjX)}(h h]h }(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj_ubj)}(hjh]h*}(hj `hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjo)}(hdesch]hdesc}(hj`hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj_ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubj)}(h int valueh](j)}(hinth]hint}(hj/`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+`ubjX)}(h h]h }(hj=`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj+`ubjo)}(hvalueh]hvalue}(hjK`hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj+`ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj_ubeh}(h]h ]h"]h$]h&]jjuh1jhj|_hhhj_hM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjx_hhhj_hM ubah}(h]js_ah ](jjeh"]h$]h&]jj)jhuh1j9hj_hM hju_hhubj)}(hhh]h)}(h set the GPIO direction to outputh]h set the GPIO direction to output}(hju`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjr`hhubah}(h]h ]h"]h$]h&]uh1jhju_hhhj_hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` GPIO to set to output ``int value`` initial output value of the GPIO **Description** Set the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj`h]h Parameters}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj`ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM# hj`ubj)}(hhh](j)}(h1``struct gpio_desc *desc`` GPIO to set to output h](j)}(h``struct gpio_desc *desc``h]j$)}(hj`h]hstruct gpio_desc *desc}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj`ubj:)}(hhh]h)}(hGPIO to set to outputh]hGPIO to set to output}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hM hj`ubah}(h]h ]h"]h$]h&]uh1j9hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`hM hj`ubj)}(h/``int value`` initial output value of the GPIO h](j)}(h ``int value``h]j$)}(hj`h]h int value}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj`ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM! hj`ubj:)}(hhh]h)}(h initial output value of the GPIOh]h initial output value of the GPIO}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhjahM! hjaubah}(h]h ]h"]h$]h&]uh1j9hj`ubeh}(h]h ]h"]h$]h&]uh1jhjahM! hj`ubeh}(h]h ]h"]h$]h&]uh1jhj`ubh)}(h**Description**h]j)}(hj*ah]h Description}(hj,ahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj(aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM# hj`ubh)}(hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account.h]hSet the direction of the passed GPIO to output, such as gpiod_set_value() can be called safely on it. The initial value of the output must be specified as the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account.}(hj@ahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM" hj`ubh)}(h **Return**h]j)}(hjQah]hReturn}(hjSahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM' hj`ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjgahhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM( hj`ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0)gpiod_enable_hw_timestamp_ns (C function)c.gpiod_enable_hw_timestamp_nshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hNint gpiod_enable_hw_timestamp_ns (struct gpio_desc *desc, unsigned long flags)h]j@)}(hMint gpiod_enable_hw_timestamp_ns(struct gpio_desc *desc, unsigned long flags)h](j)}(hinth]hint}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjahhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMw ubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjahhhjahMw ubji)}(hgpiod_enable_hw_timestamp_nsh]jo)}(hgpiod_enable_hw_timestamp_nsh]hgpiod_enable_hw_timestamp_ns}(hjahhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjaubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjahhhjahMw ubj)}(h-(struct gpio_desc *desc, unsigned long flags)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjahhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjaubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjahhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjaubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjamodnameN classnameNjj)}j]j)}jjasbc.gpiod_enable_hw_timestamp_nsasbuh1hhjaubjX)}(h h]h }(hjbhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjo)}(hdesch]hdesc}(hj,bhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjEbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAbubjX)}(h h]h }(hjSbhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAbubj)}(hlongh]hlong}(hjabhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjAbubjX)}(h h]h }(hjobhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjAbubjo)}(hflagsh]hflags}(hj}bhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjAbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhjahhhjahMw ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjahhhjahMw ubah}(h]jaah ](jjeh"]h$]h&]jj)jhuh1j9hjahMw hjahhubj)}(hhh]h)}(h)Enable hardware timestamp in nanoseconds.h]h)Enable hardware timestamp in nanoseconds.}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMw hjbhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjahMw ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjbjjbjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to enable. ``unsigned long flags`` Flags related to GPIO edge. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjbh]h Parameters}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM{ hjbubj)}(hhh](j)}(h+``struct gpio_desc *desc`` GPIO to enable. h](j)}(h``struct gpio_desc *desc``h]j$)}(hjbh]hstruct gpio_desc *desc}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjbubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMy hjbubj:)}(hhh]h)}(hGPIO to enable.h]hGPIO to enable.}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbhMy hjbubah}(h]h ]h"]h$]h&]uh1j9hjbubeh}(h]h ]h"]h$]h&]uh1jhjbhMy hjbubj)}(h4``unsigned long flags`` Flags related to GPIO edge. h](j)}(h``unsigned long flags``h]j$)}(hj!ch]hunsigned long flags}(hj#chhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMz hjcubj:)}(hhh]h)}(hFlags related to GPIO edge.h]hFlags related to GPIO edge.}(hj:chhhNhNubah}(h]h ]h"]h$]h&]uh1hhj6chMz hj7cubah}(h]h ]h"]h$]h&]uh1j9hjcubeh}(h]h ]h"]h$]h&]uh1jhj6chMz hjbubeh}(h]h ]h"]h$]h&]uh1jhjbubh)}(h **Return**h]j)}(hj\ch]hReturn}(hj^chhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZcubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM| hjbubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjrchhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM| hjbubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*gpiod_disable_hw_timestamp_ns (C function)c.gpiod_disable_hw_timestamp_nshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hOint gpiod_disable_hw_timestamp_ns (struct gpio_desc *desc, unsigned long flags)h]j@)}(hNint gpiod_disable_hw_timestamp_ns(struct gpio_desc *desc, unsigned long flags)h](j)}(hinth]hint}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjchhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjchhhjchM ubji)}(hgpiod_disable_hw_timestamp_nsh]jo)}(hgpiod_disable_hw_timestamp_nsh]hgpiod_disable_hw_timestamp_ns}(hjchhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjcubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjchhhjchM ubj)}(h-(struct gpio_desc *desc, unsigned long flags)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjchhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjcubjX)}(h h]h }(hjchhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjcubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjchhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjcmodnameN classnameNjj)}j]j)}jjcsbc.gpiod_disable_hw_timestamp_nsasbuh1hhjcubjX)}(h h]h }(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjcubj)}(hjh]h*}(hj*dhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjcubjo)}(hdesch]hdesc}(hj7dhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjcubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hjPdhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLdubjX)}(h h]h }(hj^dhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLdubj)}(hlongh]hlong}(hjldhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLdubjX)}(h h]h }(hjzdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLdubjo)}(hflagsh]hflags}(hjdhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjLdubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjcubeh}(h]h ]h"]h$]h&]jjuh1jhjchhhjchM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjchhhjchM ubah}(h]jcah ](jjeh"]h$]h&]jj)jhuh1j9hjchM hjchhubj)}(hhh]h)}(hDisable hardware timestamp.h]hDisable hardware timestamp.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjdhhubah}(h]h ]h"]h$]h&]uh1jhjchhhjchM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjdjjdjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO to disable. ``unsigned long flags`` Flags related to GPIO edge, same value as used during enable call. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjdh]h Parameters}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjdubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjdubj)}(hhh](j)}(h,``struct gpio_desc *desc`` GPIO to disable. h](j)}(h``struct gpio_desc *desc``h]j$)}(hjdh]hstruct gpio_desc *desc}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjdubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjdubj:)}(hhh]h)}(hGPIO to disable.h]hGPIO to disable.}(hj ehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehM hj eubah}(h]h ]h"]h$]h&]uh1j9hjdubeh}(h]h ]h"]h$]h&]uh1jhjehM hjdubj)}(h[``unsigned long flags`` Flags related to GPIO edge, same value as used during enable call. h](j)}(h``unsigned long flags``h]j$)}(hj,eh]hunsigned long flags}(hj.ehhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj*eubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj&eubj:)}(hhh]h)}(hBFlags related to GPIO edge, same value as used during enable call.h]hBFlags related to GPIO edge, same value as used during enable call.}(hjEehhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAehM hjBeubah}(h]h ]h"]h$]h&]uh1j9hj&eubeh}(h]h ]h"]h$]h&]uh1jhjAehM hjdubeh}(h]h ]h"]h$]h&]uh1jhjdubh)}(h **Return**h]j)}(hjgeh]hReturn}(hjiehhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeeubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjdubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj}ehhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjdubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_set_config (C function)c.gpiod_set_confighNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hCint gpiod_set_config (struct gpio_desc *desc, unsigned long config)h]j@)}(hBint gpiod_set_config(struct gpio_desc *desc, unsigned long config)h](j)}(hinth]hint}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjehhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjehhhjehM ubji)}(hgpiod_set_configh]jo)}(hgpiod_set_configh]hgpiod_set_config}(hjehhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjeubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjehhhjehM ubj)}(h.(struct gpio_desc *desc, unsigned long config)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjehhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjeubjX)}(h h]h }(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjeubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjfhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjfubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj fmodnameN classnameNjj)}j]j)}jjesbc.gpiod_set_configasbuh1hhjeubjX)}(h h]h }(hj'fhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjeubj)}(hjh]h*}(hj5fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjo)}(hdesch]hdesc}(hjBfhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubj)}(hunsigned long configh](j)}(hunsignedh]hunsigned}(hj[fhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWfubjX)}(h h]h }(hjifhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWfubj)}(hlongh]hlong}(hjwfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWfubjX)}(h h]h }(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWfubjo)}(hconfigh]hconfig}(hjfhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjeubeh}(h]h ]h"]h$]h&]jjuh1jhjehhhjehM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjehhhjehM ubah}(h]jeah ](jjeh"]h$]h&]jj)jhuh1j9hjehM hjehhubj)}(hhh]h)}(hsets **config** for a GPIOh](hsets }(hjfhhhNhNubj)}(h **config**h]hconfig}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh for a GPIO}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjfhhubah}(h]h ]h"]h$]h&]uh1jhjehhhjehM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` descriptor of the GPIO for which to set the configuration ``unsigned long config`` Same packed config format as generic pinconf **Return** 0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the configuration.h](h)}(h**Parameters**h]j)}(hjfh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjfubj)}(hhh](j)}(hU``struct gpio_desc *desc`` descriptor of the GPIO for which to set the configuration h](j)}(h``struct gpio_desc *desc``h]j$)}(hjgh]hstruct gpio_desc *desc}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj gubj:)}(hhh]h)}(h9descriptor of the GPIO for which to set the configurationh]h9descriptor of the GPIO for which to set the configuration}(hj)ghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj%ghM hj&gubah}(h]h ]h"]h$]h&]uh1j9hj gubeh}(h]h ]h"]h$]h&]uh1jhj%ghM hjgubj)}(hF``unsigned long config`` Same packed config format as generic pinconf h](j)}(h``unsigned long config``h]j$)}(hjIgh]hunsigned long config}(hjKghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGgubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjCgubj:)}(hhh]h)}(h,Same packed config format as generic pinconfh]h,Same packed config format as generic pinconf}(hjbghhhNhNubah}(h]h ]h"]h$]h&]uh1hhj^ghM hj_gubah}(h]h ]h"]h$]h&]uh1j9hjCgubeh}(h]h ]h"]h$]h&]uh1jhj^ghM hjgubeh}(h]h ]h"]h$]h&]uh1jhjfubh)}(h **Return**h]j)}(hjgh]hReturn}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjfubh)}(hX0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the configuration.h](h0 on success, }(hjghhhNhNubj$)}(h ``-ENOTSUPP``h]h -ENOTSUPP}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjgubh? if the controller doesn’t support setting the configuration.}(hjghhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjfubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_set_debounce (C function)c.gpiod_set_debouncehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hFint gpiod_set_debounce (struct gpio_desc *desc, unsigned int debounce)h]j@)}(hEint gpiod_set_debounce(struct gpio_desc *desc, unsigned int debounce)h](j)}(hinth]hint}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjghhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjghhhjghM ubji)}(hgpiod_set_debounceh]jo)}(hgpiod_set_debounceh]hgpiod_set_debounce}(hjghhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjgubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjghhhjghM ubj)}(h/(struct gpio_desc *desc, unsigned int debounce)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjhhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhubjX)}(h h]h }(hj%hhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj6hhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj3hubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj8hmodnameN classnameNjj)}j]j)}jjgsbc.gpiod_set_debounceasbuh1hhjhubjX)}(h h]h }(hjVhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhubj)}(hjh]h*}(hjdhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjo)}(hdesch]hdesc}(hjqhhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubj)}(hunsigned int debounceh](j)}(hunsignedh]hunsigned}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjX)}(h h]h }(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhubj)}(hinth]hint}(hjhhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjX)}(h h]h }(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhubjo)}(hdebounceh]hdebounce}(hjhhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjhubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjhubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjghM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjghhhjghM ubah}(h]jgah ](jjeh"]h$]h&]jj)jhuh1j9hjghM hjghhubj)}(hhh]h)}(h!sets **debounce** time for a GPIOh](hsets }(hjhhhhNhNubj)}(h **debounce**h]hdebounce}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjhubh time for a GPIO}(hjhhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjhhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjghM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjijjijjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` descriptor of the GPIO for which to set debounce time ``unsigned int debounce`` debounce time in microseconds **Return** 0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the debounce time.h](h)}(h**Parameters**h]j)}(hj ih]h Parameters}(hj"ihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjiubj)}(hhh](j)}(hQ``struct gpio_desc *desc`` descriptor of the GPIO for which to set debounce time h](j)}(h``struct gpio_desc *desc``h]j$)}(hj?ih]hstruct gpio_desc *desc}(hjAihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj=iubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj9iubj:)}(hhh]h)}(h5descriptor of the GPIO for which to set debounce timeh]h5descriptor of the GPIO for which to set debounce time}(hjXihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjTihM hjUiubah}(h]h ]h"]h$]h&]uh1j9hj9iubeh}(h]h ]h"]h$]h&]uh1jhjTihM hj6iubj)}(h8``unsigned int debounce`` debounce time in microseconds h](j)}(h``unsigned int debounce``h]j$)}(hjxih]hunsigned int debounce}(hjzihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjviubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjriubj:)}(hhh]h)}(hdebounce time in microsecondsh]hdebounce time in microseconds}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihM hjiubah}(h]h ]h"]h$]h&]uh1j9hjriubeh}(h]h ]h"]h$]h&]uh1jhjihM hj6iubeh}(h]h ]h"]h$]h&]uh1jhjiubh)}(h **Return**h]j)}(hjih]hReturn}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1jhjiubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjiubh)}(hX0 on success, ``-ENOTSUPP`` if the controller doesn't support setting the debounce time.h](h0 on success, }(hjihhhNhNubj$)}(h ``-ENOTSUPP``h]h -ENOTSUPP}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjiubh? if the controller doesn’t support setting the debounce time.}(hjihhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjiubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0 gpiod_is_active_low (C function)c.gpiod_is_active_lowhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h6int gpiod_is_active_low (const struct gpio_desc *desc)h]j@)}(h5int gpiod_is_active_low(const struct gpio_desc *desc)h](j)}(hinth]hint}(hj jhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM ubjX)}(h h]h }(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjjhhhjjhM ubji)}(hgpiod_is_active_lowh]jo)}(hgpiod_is_active_lowh]hgpiod_is_active_low}(hj+jhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj'jubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjjhhhjjhM ubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjGjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjCjubjX)}(h h]h }(hjTjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCjubjF)}(hjIh]hstruct}(hjbjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjCjubjX)}(h h]h }(hjojhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj}jubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjjmodnameN classnameNjj)}j]j)}jj-jsbc.gpiod_is_active_lowasbuh1hhjCjubjX)}(h h]h }(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCjubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCjubjo)}(hdesch]hdesc}(hjjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjCjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj?jubah}(h]h ]h"]h$]h&]jjuh1jhjjhhhjjhM ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjjhhhjjhM ubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1j9hjjhM hjihhubj)}(hhh]h)}(h(test whether a GPIO is active-low or noth]h(test whether a GPIO is active-low or not}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` the gpio descriptor to test **Return** 1 if the GPIO is active-low, 0 otherwise.h](h)}(h**Parameters**h]j)}(hjkh]h Parameters}(hj khhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjkubj)}(hhh]j)}(h=``const struct gpio_desc *desc`` the gpio descriptor to test h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj&kh]hconst struct gpio_desc *desc}(hj(khhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj$kubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hj kubj:)}(hhh]h)}(hthe gpio descriptor to testh]hthe gpio descriptor to test}(hj?khhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;khM hjmhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj:mubjX)}(h h]h }(hjKmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:mubjF)}(hjIh]hstruct}(hjYmhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj:mubjX)}(h h]h }(hjfmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:mubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjwmhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtmubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymmodnameN classnameNjj)}j]j)}jj$msbc.gpiod_get_raw_valueasbuh1hhj:mubjX)}(h h]h }(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj:mubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:mubjo)}(hdesch]hdesc}(hjmhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj:mubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj6mubah}(h]h ]h"]h$]h&]jjuh1jhjlhhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjlhhhjmhMubah}(h]jlah ](jjeh"]h$]h&]jj)jhuh1j9hjmhMhjlhhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjmhhubah}(h]h ]h"]h$]h&]uh1jhjlhhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1j4hhhjhNhNubj)}(hXp**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure. **Description** This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h](h)}(h**Parameters**h]j)}(hjmh]h Parameters}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjmubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjmubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hjnh]hconst struct gpio_desc *desc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjnubj:)}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hj6nhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj2nhMhj3nubah}(h]h ]h"]h$]h&]uh1j9hjnubeh}(h]h ]h"]h$]h&]uh1jhj2nhMhjnubah}(h]h ]h"]h$]h&]uh1jhjmubh)}(h **Return**h]j)}(hjXnh]hReturn}(hjZnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjmubh)}(h{The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.h]h}The GPIO’s raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.}(hjnnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjmubh)}(h**Description**h]j)}(hjnh]h Description}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}nubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjmubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjmubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_get_value (C function)c.gpiod_get_valuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h2int gpiod_get_value (const struct gpio_desc *desc)h]j@)}(h1int gpiod_get_value(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjnhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnhhhjnhMubji)}(hgpiod_get_valueh]jo)}(hgpiod_get_valueh]hgpiod_get_value}(hjnhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjnubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjnhhhjnhMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjohhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjnubjX)}(h h]h }(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnubjF)}(hjIh]hstruct}(hjohhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjnubjX)}(h h]h }(hj)ohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjnubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj:ohhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj7oubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMWhjvubh)}(hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and it will complain if the GPIO chip functions potentially sleep.}(hjMwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMZhjvubh)}(h **Return**h]j)}(hj^wh]hReturn}(hj`whhhNhNubah}(h]h ]h"]h$]h&]uh1jhj\wubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM]hjvubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjtwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM^hjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0 gpiod_set_raw_value (C function)c.gpiod_set_raw_valuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h;int gpiod_set_raw_value (struct gpio_desc *desc, int value)h]j@)}(h:int gpiod_set_raw_value(struct gpio_desc *desc, int value)h](j)}(hinth]hint}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMaubjX)}(h h]h }(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwhhhjwhMaubji)}(hgpiod_set_raw_valueh]jo)}(hgpiod_set_raw_valueh]hgpiod_set_raw_value}(hjwhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjwubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjwhhhjwhMaubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjwhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjwubjX)}(h h]h }(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjwhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjwubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjxmodnameN classnameNjj)}j]j)}jjwsbc.gpiod_set_raw_valueasbuh1hhjwubjX)}(h h]h }(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubj)}(hjh]h*}(hj,xhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjo)}(hdesch]hdesc}(hj9xhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubj)}(h int valueh](j)}(hinth]hint}(hjRxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjNxubjX)}(h h]h }(hj`xhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjNxubjo)}(hvalueh]hvalue}(hjnxhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjNxubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjwubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjwhMaubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjwhhhjwhMaubah}(h]jwah ](jjeh"]h$]h&]jj)jhuh1j9hjwhMahjwhhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMahjxhhubah}(h]h ]h"]h$]h&]uh1jhjwhhhjwhMaubeh}(h]h ](jfunctioneh"]h$]h&]jjjjxjjxjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjxubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMehjxubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j$)}(hjxh]hstruct gpio_desc *desc}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjxubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMbhjxubj:)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMbhjxubah}(h]h ]h"]h$]h&]uh1j9hjxubeh}(h]h ]h"]h$]h&]uh1jhjxhMbhjxubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j$)}(hjyh]h int value}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjyubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMchj yubj:)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hj+yhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'yhMchj(yubah}(h]h ]h"]h$]h&]uh1j9hj yubeh}(h]h ]h"]h$]h&]uh1jhj'yhMchjxubeh}(h]h ]h"]h$]h&]uh1jhjxubh)}(h**Description**h]j)}(hjMyh]h Description}(hjOyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMehjxubh)}(hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.h]hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.}(hjcyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMdhjxubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjryhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMghjxubh)}(h **Return**h]j)}(hjyh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMjhjxubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMkhjxubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_set_value (C function)c.gpiod_set_valuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h7int gpiod_set_value (struct gpio_desc *desc, int value)h]j@)}(h6int gpiod_set_value(struct gpio_desc *desc, int value)h](j)}(hinth]hint}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjyhhhjyhMubji)}(hgpiod_set_valueh]jo)}(hgpiod_set_valueh]hgpiod_set_value}(hjyhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjyubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjyhhhjyhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjzhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjzubjX)}(h h]h }(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj#zhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj zubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj%zmodnameN classnameNjj)}j]j)}jjysbc.gpiod_set_valueasbuh1hhjzubjX)}(h h]h }(hjCzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzubj)}(hjh]h*}(hjQzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzubjo)}(hdesch]hdesc}(hj^zhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjzubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubj)}(h int valueh](j)}(hinth]hint}(hjwzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjszubjX)}(h h]h }(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjszubjo)}(hvalueh]hvalue}(hjzhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjszubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjyubeh}(h]h ]h"]h$]h&]jjuh1jhjyhhhjyhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjyhhhjyhMubah}(h]jyah ](jjeh"]h$]h&]jj)jhuh1j9hjyhMhjyhhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzhhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjyhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjzh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjzubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j$)}(hjzh]hstruct gpio_desc *desc}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubj:)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj{hMhj{ubah}(h]h ]h"]h$]h&]uh1j9hjzubeh}(h]h ]h"]h$]h&]uh1jhj{hMhjzubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j$)}(hj7{h]h int value}(hj9{hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5{ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj1{ubj:)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjP{hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjL{hMhjM{ubah}(h]h ]h"]h$]h&]uh1j9hj1{ubeh}(h]h ]h"]h$]h&]uh1jhjL{hMhjzubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(h**Description**h]j)}(hjr{h]h Description}(hjt{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjp{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubh)}(hmSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account.h]hmSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW, OPEN_DRAIN and OPEN_SOURCE flags into account.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubh)}(h **Return**h]j)}(hj{h]hReturn}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj{ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&gpiod_set_raw_array_value (C function)c.gpiod_set_raw_array_valuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_set_raw_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_set_raw_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj{hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj{hhhj{hMubji)}(hgpiod_set_raw_array_valueh]jo)}(hgpiod_set_raw_array_valueh]hgpiod_set_raw_array_value}(hj|hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj |ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj{hhhj{hMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hj*|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&|ubjX)}(h h]h }(hj8|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&|ubj)}(hinth]hint}(hjF|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&|ubjX)}(h h]h }(hjT|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj&|ubjo)}(h array_sizeh]h array_size}(hjb|hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj&|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"|ubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hj{|hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjw|ubjX)}(h h]h }(hj|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjw|ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj|hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj|modnameN classnameNjj)}j]j)}jj|sbc.gpiod_set_raw_array_valueasbuh1hhjw|ubjX)}(h h]h }(hj|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjw|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw|ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw|ubjo)}(h desc_arrayh]h desc_array}(hj|hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjw|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"|ubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hj|hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj|ubjX)}(h h]h }(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hj}hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j|c.gpiod_set_raw_array_valueasbuh1hhj|ubjX)}(h h]h }(hj6}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubj)}(hjh]h*}(hjD}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjo)}(h array_infoh]h array_info}(hjQ}hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"|ubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubjX)}(h h]h }(hjx}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjf}ubj)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubjX)}(h h]h }(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjf}ubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf}ubjo)}(h value_bitmaph]h value_bitmap}(hj}hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjf}ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj"|ubeh}(h]h ]h"]h$]h&]jjuh1jhj{hhhj{hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj{hhhj{hMubah}(h]j{ah ](jjeh"]h$]h&]jj)jhuh1j9hj{hMhj{hhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}hhubah}(h]h ]h"]h$]h&]uh1jhj{hhhj{hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj}jj}jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj}h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hj~h]hunsigned int array_size}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hj3~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/~hMhj0~ubah}(h]h ]h"]h$]h&]uh1j9hj~ubeh}(h]h ]h"]h$]h&]uh1jhj/~hMhj~ubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hjS~h]hstruct gpio_desc **desc_array}(hjU~hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQ~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjM~ubj:)}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjl~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjh~hMhji~ubah}(h]h ]h"]h$]h&]uh1j9hjM~ubeh}(h]h ]h"]h$]h&]uh1jhjh~hMhj~ubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hj~h]hstruct gpio_array *array_info}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j9hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~ubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j$)}(hj~h]hunsigned long *value_bitmap}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj~ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubj:)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~hMhj~ubah}(h]h ]h"]h$]h&]uh1j9hj~ubeh}(h]h ]h"]h$]h&]uh1jhj~hMhj~ubeh}(h]h ]h"]h$]h&]uh1jhj}ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubh)}(hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubh)}(h **Return**h]j)}(hj6h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0"gpiod_set_array_value (C function)c.gpiod_set_array_valuehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_set_array_value (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_set_array_value(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwhhhjhMubji)}(hgpiod_set_array_valueh]jo)}(hgpiod_set_array_valueh]hgpiod_set_array_value}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjwhhhjhMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj'hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj$ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj)modnameN classnameNjj)}j]j)}jjsbc.gpiod_set_array_valueasbuh1hhjubjX)}(h h]h }(hjGhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h desc_arrayh]h desc_array}(hjohhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jCc.gpiod_set_array_valueasbuh1hhjubjX)}(h h]h }(hjĀhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjҀhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h array_infoh]h array_info}(hj߀hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h value_bitmaph]h value_bitmap}(hj=hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjwhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjshhhjhMubah}(h]jnah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjphhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjphhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj߁ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjہubj:)}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjہubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj/hMhj0ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj/hMhjubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j$)}(hjSh]hunsigned long *value_bitmap}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjMubj:)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhMhjiubah}(h]h ]h"]h$]h&]uh1j9hjMubeh}(h]h ]h"]h$]h&]uh1jhjhhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.h]hThis function can be called from contexts where we cannot sleep, and will complain if the GPIO chip functions potentially sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjĂh]hReturn}(hjƂhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj‚ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjڂhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_cansleep (C function)c.gpiod_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h1int gpiod_cansleep (const struct gpio_desc *desc)h]j@)}(h0int gpiod_cansleep(const struct gpio_desc *desc)h](j)}(hinth]hint}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hgpiod_cansleeph]jo)}(hgpiod_cansleeph]hgpiod_cansleep}(hj*hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj&ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjBubjX)}(h h]h }(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubjF)}(hjIh]hstruct}(hjahhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjBubjX)}(h h]h }(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj,sbc.gpiod_cansleepasbuh1hhjBubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj>ubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h*report whether gpio value access may sleeph]h*report whether gpio value access may sleep}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` gpio to check **Return** 0 for non-sleepable, 1 for sleepable, or an error code in case of error.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(h/``const struct gpio_desc *desc`` gpio to check h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj%h]hconst struct gpio_desc *desc}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj#ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h gpio to checkh]h gpio to check}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj:hMhj;ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj:hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj`h]hReturn}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj^ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hH0 for non-sleepable, 1 for sleepable, or an error code in case of error.h]hH0 for non-sleepable, 1 for sleepable, or an error code in case of error.}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0$gpiod_set_consumer_name (C function)c.gpiod_set_consumer_namehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hFint gpiod_set_consumer_name (struct gpio_desc *desc, const char *name)h]j@)}(hEint gpiod_set_consumer_name(struct gpio_desc *desc, const char *name)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hgpiod_set_consumer_nameh]jo)}(hgpiod_set_consumer_nameh]hgpiod_set_consumer_name}(hjƄhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj„ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h*(struct gpio_desc *desc, const char *name)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjބubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjބubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjȄsbc.gpiod_set_consumer_nameasbuh1hhjބubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjބubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjބubjo)}(hdesch]hdesc}(hj;hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjބubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڄubj)}(hconst char *nameh](jF)}(hjh]hconst}(hjThhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjPubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubj)}(hcharh]hchar}(hjohhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjX)}(h h]h }(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjo)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjڄubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h(set the consumer name for the descriptorh]h(set the consumer name for the descriptor}(hj…hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjڅjjڅjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` gpio to set the consumer name on ``const char *name`` the new consumer name **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjޅubj)}(hhh](j)}(h<``struct gpio_desc *desc`` gpio to set the consumer name on h](j)}(h``struct gpio_desc *desc``h]j$)}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h gpio to set the consumer name onh]h gpio to set the consumer name on}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h+``const char *name`` the new consumer name h](j)}(h``const char *name``h]j$)}(hj<h]hconst char *name}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj:ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj6ubj:)}(hhh]h)}(hthe new consumer nameh]hthe new consumer name}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjQhMhjRubah}(h]h ]h"]h$]h&]uh1j9hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhjubeh}(h]h ]h"]h$]h&]uh1jhjޅubh)}(h **Return**h]j)}(hjwh]hReturn}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjޅubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjޅubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_is_shared (C function)c.gpiod_is_sharedhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h3bool gpiod_is_shared (const struct gpio_desc *desc)h]j@)}(h2bool gpiod_is_shared(const struct gpio_desc *desc)h](j)}(hjT,h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjʆhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjɆhMubji)}(hgpiod_is_sharedh]jo)}(hgpiod_is_sharedh]hgpiod_is_shared}(hj܆hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj؆ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjɆhMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj1hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj.ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj3modnameN classnameNjj)}j]j)}jjކsbc.gpiod_is_sharedasbuh1hhjubjX)}(h h]h }(hjQhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hjlhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjɆhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjɆhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjɆhMhjhhubj)}(hhh]h)}(h6check if this GPIO can be shared by multiple consumersh]h6check if this GPIO can be shared by multiple consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjɆhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``const struct gpio_desc *desc`` GPIO to inspect **Return** True if this GPIO can be shared by multiple consumers at once. False if it's a regular, exclusive GPIO. **Note** This function returning true does not mean that this GPIO is currently being shared. It means the GPIO core has registered the fact that the firmware configuration indicates that it can be shared by multiple consumers and is in charge of arbitrating the access.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjubj)}(hhh]j)}(h1``const struct gpio_desc *desc`` GPIO to inspect h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hjׇh]hconst struct gpio_desc *desc}(hjهhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjՇubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjчubj:)}(hhh]h)}(hGPIO to inspecth]hGPIO to inspect}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjчubeh}(h]h ]h"]h$]h&]uh1jhjhMhj·ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hgTrue if this GPIO can be shared by multiple consumers at once. False if it's a regular, exclusive GPIO.h]hiTrue if this GPIO can be shared by multiple consumers at once. False if it’s a regular, exclusive GPIO.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h**Note**h]j)}(hj9h]hNote}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjubh)}(hXThis function returning true does not mean that this GPIO is currently being shared. It means the GPIO core has registered the fact that the firmware configuration indicates that it can be shared by multiple consumers and is in charge of arbitrating the access.h]hXThis function returning true does not mean that this GPIO is currently being shared. It means the GPIO core has registered the fact that the firmware configuration indicates that it can be shared by multiple consumers and is in charge of arbitrating the access.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_to_irq (C function)c.gpiod_to_irqhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/int gpiod_to_irq (const struct gpio_desc *desc)h]j@)}(h.int gpiod_to_irq(const struct gpio_desc *desc)h](j)}(hinth]hint}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjzhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjzhhhjhMubji)}(h gpiod_to_irqh]jo)}(h gpiod_to_irqh]h gpiod_to_irq}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjzhhhjhMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjȈhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjF)}(hjIh]hstruct}(hjֈhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.gpiod_to_irqasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hj/hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjzhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjvhhhjhMubah}(h]jqah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjshhubj)}(hhh]h)}(h&return the IRQ corresponding to a GPIOh]h&return the IRQ corresponding to a GPIO}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjVhhubah}(h]h ]h"]h$]h&]uh1jhjshhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``const struct gpio_desc *desc`` gpio whose IRQ will be returned (already requested) **Return** The IRQ corresponding to the passed GPIO, or an error code in case of error.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjuubj)}(hhh]j)}(hU``const struct gpio_desc *desc`` gpio whose IRQ will be returned (already requested) h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hjh]hconst struct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h3gpio whose IRQ will be returned (already requested)h]h3gpio whose IRQ will be returned (already requested)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjuubh)}(h **Return**h]j)}(hjՉh]hReturn}(hj׉hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӉubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjuubh)}(hLThe IRQ corresponding to the passed GPIO, or an error code in case of error.h]hLThe IRQ corresponding to the passed GPIO, or an error code in case of error.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!gpiochip_lock_as_irq (C function)c.gpiochip_lock_as_irqhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hDint gpiochip_lock_as_irq (struct gpio_chip *gc, unsigned int offset)h]j@)}(hCint gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMIubjX)}(h h]h }(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj(hMIubji)}(hgpiochip_lock_as_irqh]jo)}(hgpiochip_lock_as_irqh]hgpiochip_lock_as_irq}(hj;hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj(hMIubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjWhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSubjX)}(h h]h }(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjuhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjwmodnameN classnameNjj)}j]j)}jj=sbc.gpiochip_lock_as_irqasbuh1hhjSubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjo)}(hgch]hgc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjɊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŊubjX)}(h h]h }(hj׊hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjŊubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŊubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjŊubjo)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjŊubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hMIubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj(hMIubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j9hj(hMIhjhhubj)}(hhh]h)}(hlock a GPIO to be used as IRQh]hlock a GPIO to be used as IRQ}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMIhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMIubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1j4hhhjhNhNubj)}(hXA**Parameters** ``struct gpio_chip *gc`` the chip the GPIO to lock belongs to ``unsigned int offset`` the offset of the GPIO to lock as IRQ **Description** This is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMMhjGubj)}(hhh](j)}(h>``struct gpio_chip *gc`` the chip the GPIO to lock belongs to h](j)}(h``struct gpio_chip *gc``h]j$)}(hjlh]hstruct gpio_chip *gc}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMJhjfubj:)}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMJhjubah}(h]h ]h"]h$]h&]uh1j9hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMJhjcubj)}(h>``unsigned int offset`` the offset of the GPIO to lock as IRQ h](j)}(h``unsigned int offset``h]j$)}(hjh]hunsigned int offset}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMKhjubj:)}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMKhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjދubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMMhjGubh)}(heThis is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs.h]heThis is used directly by GPIO drivers that want to lock down a certain GPIO line to be used for IRQs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMLhjGubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMOhjGubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMPhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0#gpiochip_unlock_as_irq (C function)c.gpiochip_unlock_as_irqhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hGvoid gpiochip_unlock_as_irq (struct gpio_chip *gc, unsigned int offset)h]j@)}(hFvoid gpiochip_unlock_as_irq(struct gpio_chip *gc, unsigned int offset)h](j)}(hvoidh]hvoid}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMzubjX)}(h h]h }(hj[hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjHhhhjZhMzubji)}(hgpiochip_unlock_as_irqh]jo)}(hgpiochip_unlock_as_irqh]hgpiochip_unlock_as_irq}(hjmhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjiubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjHhhhjZhMzubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjosbc.gpiochip_unlock_as_irqasbuh1hhjubjX)}(h h]h }(hjnjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjՌhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hgch]hgc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hoffseth]hoffset}(hj3hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjHhhhjZhMzubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjDhhhjZhMzubah}(h]j?ah ](jjeh"]h$]h&]jj)jhuh1j9hjZhMzhjAhhubj)}(hhh]h)}(hunlock a GPIO used as IRQh]hunlock a GPIO used as IRQ}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMzhjZhhubah}(h]h ]h"]h$]h&]uh1jhjAhhhjZhMzubeh}(h]h ](jfunctioneh"]h$]h&]jjjjujjujjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the chip the GPIO to lock belongs to ``unsigned int offset`` the offset of the GPIO to lock as IRQ **Description** This is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj}ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM~hjyubj)}(hhh](j)}(h>``struct gpio_chip *gc`` the chip the GPIO to lock belongs to h](j)}(h``struct gpio_chip *gc``h]j$)}(hjh]hstruct gpio_chip *gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM{hjubj:)}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM{hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hjubj)}(h>``unsigned int offset`` the offset of the GPIO to lock as IRQ h](j)}(h``unsigned int offset``h]j$)}(hj׍h]hunsigned int offset}(hjٍhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjՍubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM|hjэubj:)}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM|hjubah}(h]h ]h"]h$]h&]uh1j9hjэubeh}(h]h ]h"]h$]h&]uh1jhjhM|hjubeh}(h]h ]h"]h$]h&]uh1jhjyubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM~hjyubh)}(hvThis is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.h]hvThis is used directly by GPIO drivers that want to indicate that a certain GPIO is no longer used exclusively for IRQ.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM}hjyubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0)gpiod_get_raw_value_cansleep (C function)c.gpiod_get_raw_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h?int gpiod_get_raw_value_cansleep (const struct gpio_desc *desc)h]j@)}(h>int gpiod_get_raw_value_cansleep(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjWhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjShhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjShhhjehMubji)}(hgpiod_get_raw_value_cansleeph]jo)}(hgpiod_get_raw_value_cansleeph]hgpiod_get_raw_value_cansleep}(hjxhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjShhhjehMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj͎hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjʎubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjώmodnameN classnameNjj)}j]j)}jjzsbc.gpiod_get_raw_value_cansleepasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjShhhjehMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjOhhhjehMubah}(h]jJah ](jjeh"]h$]h&]jj)jhuh1j9hjehMhjLhhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jhjLhhhjehMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1j4hhhjhNhNubj)}(hX+**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure. **Description** This function is to be called from contexts that can sleep.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjNubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hjsh]hconst struct gpio_desc *desc}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjqubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjmubj:)}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjmubeh}(h]h ]h"]h$]h&]uh1jhjhMhjjubah}(h]h ]h"]h$]h&]uh1jhjNubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjNubh)}(h{The GPIO's raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.h]h}The GPIO’s raw value, i.e. the value of the physical line disregarding its ACTIVE_LOW status, or negative errno on failure.}(hjďhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjNubh)}(h**Description**h]j)}(hjՏh]h Description}(hj׏hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjӏubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjNubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%gpiod_get_value_cansleep (C function)c.gpiod_get_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h;int gpiod_get_value_cansleep (const struct gpio_desc *desc)h]j@)}(h:int gpiod_get_value_cansleep(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj(hMubji)}(hgpiod_get_value_cansleeph]jo)}(hgpiod_get_value_cansleeph]hgpiod_get_value_cansleep}(hj;hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj7ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj(hMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](jF)}(hjh]hconst}(hjWhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSubjX)}(h h]h }(hjdhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubjF)}(hjIh]hstruct}(hjrhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjSubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jj=sbc.gpiod_get_value_cansleepasbuh1hhjSubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjo)}(hdesch]hdesc}(hjːhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjSubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjOubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj(hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj(hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j9hj(hMhjhhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn a gpio’s value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj(hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``const struct gpio_desc *desc`` gpio whose value will be returned **Return** The GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure. **Description** This function is to be called from contexts that can sleep.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned h](j)}(h ``const struct gpio_desc *desc``h]j$)}(hj6h]hconst struct gpio_desc *desc}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj0ubj:)}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1j9hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhj-ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjqh]hReturn}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jhjoubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hgThe GPIO's logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.h]hiThe GPIO’s logical value, i.e. taking the ACTIVE_LOW status into account, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0/gpiod_get_raw_array_value_cansleep (C function)$c.gpiod_get_raw_array_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_get_raw_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_get_raw_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hjݑhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjّhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjّhhhjhMubji)}(h"gpiod_get_raw_array_value_cansleeph]jo)}(h"gpiod_get_raw_array_value_cansleeph]h"gpiod_get_raw_array_value_cansleep}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjّhhhjhMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(h array_sizeh]h array_size}(hjRhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hjkhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjgubjX)}(h h]h }(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb$c.gpiod_get_raw_array_value_cansleepasbuh1hhjgubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubj)}(hjh]h*}(hjĒhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjo)}(h desc_arrayh]h desc_array}(hjђhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjgubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j$c.gpiod_get_raw_array_value_cansleepasbuh1hhjubjX)}(h h]h }(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h array_infoh]h array_info}(hjAhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjZhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjX)}(h h]h }(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubj)}(hlongh]hlong}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjo)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjVubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjّhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjՑhhhjhMubah}(h]jБah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjґhhubj)}(hhh]h)}(h&read raw values from an array of GPIOsh]h&read raw values from an array of GPIOs}(hjɓhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjƓhhubah}(h]h ]h"]h$]h&]uh1jhjґhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hX`**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hj h]hunsigned int array_size}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhj ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hjCh]hstruct gpio_desc **desc_array}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj=ubj:)}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j9hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hj|h]hstruct gpio_array *array_info}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjzubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjvubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjvubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j$)}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjΔhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjʔhMhj˔ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjʔhMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hsRead the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hj&h]hReturn}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0+gpiod_get_array_value_cansleep (C function) c.gpiod_get_array_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_get_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_get_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hjkhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjghhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM0ubjX)}(h h]h }(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjghhhjyhM0ubji)}(hgpiod_get_array_value_cansleeph]jo)}(hgpiod_get_array_value_cansleeph]hgpiod_get_array_value_cansleep}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjghhhjyhM0ubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hjĕhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjҕhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.gpiod_get_array_value_cansleepasbuh1hhjubjX)}(h h]h }(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h desc_arrayh]h desc_array}(hj_hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hjxhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjtubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjtubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j3 c.gpiod_get_array_value_cansleepasbuh1hhjtubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjtubj)}(hjh]h*}(hj–hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjo)}(h array_infoh]h array_info}(hjϖhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h value_bitmaph]h value_bitmap}(hj-hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjghhhjyhM0ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjchhhjyhM0ubah}(h]j^ah ](jjeh"]h$]h&]jj)jhuh1j9hjyhM0hj`hhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read values from an array of GPIOs}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM0hjThhubah}(h]h ]h"]h$]h&]uh1jhj`hhhjyhM0ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjojjojjjuh1j4hhhjhNhNubj)}(hXD**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap to store the read values **Description** Read the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjyh]h Parameters}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM4hjsubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM1hjubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjubj)}(hV``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be read h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hjїh]hstruct gpio_desc **desc_array}(hjӗhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjϗubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM2hj˗ubj:)}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j9hj˗ubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hj h]hstruct gpio_array *array_info}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3hjubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hj ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j$)}(hjCh]hunsigned long *value_bitmap}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM4hj=ubj:)}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhM4hjYubah}(h]h ]h"]h$]h&]uh1j9hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhM4hjubeh}(h]h ]h"]h$]h&]uh1jhjsubh)}(h**Description**h]j)}(hj~h]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM6hjsubh)}(hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hWRead the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM5hjsubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM8hjsubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM:hjsubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjʘhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM;hjsubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0)gpiod_set_raw_value_cansleep (C function)c.gpiod_set_raw_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hDint gpiod_set_raw_value_cansleep (struct gpio_desc *desc, int value)h]j@)}(hCint gpiod_set_raw_value_cansleep(struct gpio_desc *desc, int value)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMMubji)}(hgpiod_set_raw_value_cansleeph]jo)}(hgpiod_set_raw_value_cansleeph]hgpiod_set_raw_value_cansleep}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj6hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj2ubjX)}(h h]h }(hjChhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjQubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjVmodnameN classnameNjj)}j]j)}jjsbc.gpiod_set_raw_value_cansleepasbuh1hhj2ubjX)}(h h]h }(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj2ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj2ubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj2ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubj)}(h int valueh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hvalueh]hvalue}(hjęhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj.ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMMhjhhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hXh**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMQhj ubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j$)}(hj/h]hstruct gpio_desc *desc}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj-ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMNhj)ubj:)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMNhjEubah}(h]h ]h"]h$]h&]uh1j9hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMNhj&ubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j$)}(hjhh]h int value}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjfubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMOhjbubj:)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMOhj~ubah}(h]h ]h"]h$]h&]uh1j9hjbubeh}(h]h ]h"]h$]h&]uh1jhj}hMOhj&ubeh}(h]h ]h"]h$]h&]uh1jhj ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMQhj ubh)}(hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.h]hlSet the raw value of the GPIO, i.e. the value of its physical line without regard for its ACTIVE_LOW status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMPhj ubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjȚhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMShj ubh)}(h **Return**h]j)}(hjٚh]hReturn}(hjۚhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjךubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMUhj ubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMVhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%gpiod_set_value_cansleep (C function)c.gpiod_set_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h@int gpiod_set_value_cansleep (struct gpio_desc *desc, int value)h]j@)}(h?int gpiod_set_value_cansleep(struct gpio_desc *desc, int value)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMbubjX)}(h h]h }(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj,hMbubji)}(hgpiod_set_value_cansleeph]jo)}(hgpiod_set_value_cansleeph]hgpiod_set_value_cansleep}(hj?hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj;ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj,hMbubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj[hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjWubjX)}(h h]h }(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjyhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjvubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj{modnameN classnameNjj)}j]j)}jjAsbc.gpiod_set_value_cansleepasbuh1hhjWubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjWubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjWubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubj)}(h int valueh](j)}(hinth]hint}(hj͛hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjɛubjX)}(h h]h }(hjۛhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjɛubjo)}(hvalueh]hvalue}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjɛubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjSubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hMbubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj,hMbubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj,hMbhjhhubj)}(hhh]h)}(hassign a gpio's valueh]hassign a gpio’s value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMbhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1j4hhhjhNhNubj)}(hXM**Parameters** ``struct gpio_desc *desc`` gpio whose value will be assigned ``int value`` value to assign **Description** Set the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account This function is to be called from contexts that can sleep. **Return** 0 on success, negative error number on failure.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMfhj/ubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j$)}(hjTh]hstruct gpio_desc *desc}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMchjNubj:)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihMchjjubah}(h]h ]h"]h$]h&]uh1j9hjNubeh}(h]h ]h"]h$]h&]uh1jhjihMchjKubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j$)}(hjh]h int value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMdhjubj:)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMdhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMdhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hjȜh]h Description}(hjʜhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjƜubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMfhj/ubh)}(hQSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into accounth]hQSet the logical value of the GPIO, i.e. taking its ACTIVE_LOW status into account}(hjޜhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMehj/ubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhhj/ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMjhj/ubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMkhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0/gpiod_set_raw_array_value_cansleep (C function)$c.gpiod_set_raw_array_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_set_raw_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_set_raw_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMwubjX)}(h h]h }(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj?hhhjQhMwubji)}(h"gpiod_set_raw_array_value_cansleeph]jo)}(h"gpiod_set_raw_array_value_cansleeph]h"gpiod_set_raw_array_value_cansleep}(hjdhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj`ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj?hhhjQhMwubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj|ubjo)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hjѝhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj͝ubjX)}(h h]h }(hjޝhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj͝ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjfsb$c.gpiod_set_raw_array_value_cansleepasbuh1hhj͝ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj͝ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͝ubj)}(hjh]h*}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͝ubjo)}(h desc_arrayh]h desc_array}(hj7hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj͝ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hjPhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjLubjX)}(h h]h }(hj]hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hjnhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjkubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjpmodnameN classnameNjj)}j]j $c.gpiod_set_raw_array_value_cansleepasbuh1hhjLubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjLubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjo)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjLubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjΞhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hlongh]hlong}(hjܞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjxubeh}(h]h ]h"]h$]h&]jjuh1jhj?hhhjQhMwubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj;hhhjQhMwubah}(h]j6ah ](jjeh"]h$]h&]jj)jhuh1j9hjQhMwhj8hhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMwhj,hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhjQhMwubeh}(h]h ](jfunctioneh"]h$]h&]jjjjGjjGjjjuh1j4hhhjhNhNubj)}(hX^**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjQh]h Parameters}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM{hjKubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hjph]hunsigned int array_size}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMxhjjubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1j9hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjgubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hjh]hstruct gpio_desc **desc_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMyhjubj:)}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjŸhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMyhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhjgubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hjh]hstruct gpio_array *array_info}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMzhjܟubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMzhjubah}(h]h ]h"]h$]h&]uh1j9hjܟubeh}(h]h ]h"]h$]h&]uh1jhjhMzhjgubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j$)}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM{hjubj:)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hM{hj1ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj0hM{hjgubeh}(h]h ]h"]h$]h&]uh1jhjKubh)}(h**Description**h]j)}(hjVh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjTubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM}hjKubh)}(hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.h]hrSet the raw values of the GPIOs, i.e. the values of the physical lines without regard for their ACTIVE_LOW status.}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM|hjKubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjKubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjKubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjKubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0+gpiod_set_array_value_cansleep (C function) c.gpiod_set_array_value_cansleephNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hint gpiod_set_array_value_cansleep (unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h]j@)}(hint gpiod_set_array_value_cansleep(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hjѠhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj͠hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj͠hhhjߠhMubji)}(hgpiod_set_array_value_cansleeph]jo)}(hgpiod_set_array_value_cansleeph]hgpiod_set_array_value_cansleep}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj͠hhhjߠhMubj)}(ht(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hunsigned int array_sizeh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubj)}(hinth]hint}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjX)}(h h]h }(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubjo)}(h array_sizeh]h array_size}(hjFhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc **desc_arrayh](jF)}(hjIh]hstruct}(hj_hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj[ubjX)}(h h]h }(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj}hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjzubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.gpiod_set_array_value_cansleepasbuh1hhj[ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjo)}(h desc_arrayh]h desc_array}(hjšhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_array *array_infoh](jF)}(hjIh]hstruct}(hjޡhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjڡubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjڡubh)}(hhh]jo)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.gpiod_set_array_value_cansleepasbuh1hhjڡubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjڡubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjڡubjo)}(h array_infoh]h array_info}(hj5hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjڡubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjX)}(h h]h }(hj\hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubj)}(hlongh]hlong}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjX)}(h h]h }(hjxhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjJubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjJubjo)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjJubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj͠hhhjߠhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjɠhhhjߠhMubah}(h]jĠah ](jjeh"]h$]h&]jj)jhuh1j9hjߠhMhjƠhhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjƠhhhjߠhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjբjjբjjjuh1j4hhhjhNhNubj)}(hXB**Parameters** ``unsigned int array_size`` number of elements in the descriptor array / value bitmap ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned ``struct gpio_array *array_info`` information on applicability of fast bitmap processing path ``unsigned long *value_bitmap`` bitmap of values to assign **Description** Set the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account. This function is to be called from contexts that can sleep. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjߢh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjݢubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubj)}(hhh](j)}(hV``unsigned int array_size`` number of elements in the descriptor array / value bitmap h](j)}(h``unsigned int array_size``h]j$)}(hjh]hunsigned int array_size}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h9number of elements in the descriptor array / value bitmaph]h9number of elements in the descriptor array / value bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hZ``struct gpio_desc **desc_array`` array of GPIO descriptors whose values will be assigned h](j)}(h!``struct gpio_desc **desc_array``h]j$)}(hj7h]hstruct gpio_desc **desc_array}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj5ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj1ubj:)}(hhh]h)}(h7array of GPIO descriptors whose values will be assignedh]h7array of GPIO descriptors whose values will be assigned}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjLhMhjMubah}(h]h ]h"]h$]h&]uh1j9hj1ubeh}(h]h ]h"]h$]h&]uh1jhjLhMhjubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j$)}(hjph]hstruct gpio_array *array_info}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjnubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjjubj:)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``unsigned long *value_bitmap`` bitmap of values to assign h](j)}(h``unsigned long *value_bitmap``h]j$)}(hjh]hunsigned long *value_bitmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hj£hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj٢ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubh)}(hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.h]hVSet the logical values of the GPIOs, i.e. taking their ACTIVE_LOW status into account.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubh)}(h;This function is to be called from contexts that can sleep.h]h;This function is to be called from contexts that can sleep.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj٢ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0#gpiod_add_lookup_table (C function)c.gpiod_add_lookup_tablehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h>void gpiod_add_lookup_table (struct gpiod_lookup_table *table)h]j@)}(h=void gpiod_add_lookup_table(struct gpiod_lookup_table *table)h](j)}(hvoidh]hvoid}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[hhhjmhMubji)}(hgpiod_add_lookup_tableh]jo)}(hgpiod_add_lookup_tableh]hgpiod_add_lookup_table}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj|ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj[hhhjmhMubj)}(h"(struct gpiod_lookup_table *table)h]j)}(h struct gpiod_lookup_table *tableh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.gpiod_add_lookup_tableasbuh1hhjubjX)}(h h]h }(hjڤhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(htableh]htable}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhj[hhhjmhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjWhhhjmhMubah}(h]jRah ](jjeh"]h$]h&]jj)jhuh1j9hjmhMhjThhubj)}(hhh]h)}(hregister GPIO device consumersh]hregister GPIO device consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjThhhjmhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj7jj7jjjuh1j4hhhjhNhNubj)}(hU**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to registerh](h)}(h**Parameters**h]j)}(hjAh]h Parameters}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj;ubj)}(hhh]j)}(hC``struct gpiod_lookup_table *table`` table of consumers to registerh](j)}(h$``struct gpiod_lookup_table *table``h]j$)}(hj`h]h struct gpiod_lookup_table *table}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj^ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjZubj:)}(hhh]h)}(htable of consumers to registerh]htable of consumers to register}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjvubah}(h]h ]h"]h$]h&]uh1j9hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMhjWubah}(h]h ]h"]h$]h&]uh1jhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&gpiod_remove_lookup_table (C function)c.gpiod_remove_lookup_tablehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hAvoid gpiod_remove_lookup_table (struct gpiod_lookup_table *table)h]j@)}(h@void gpiod_remove_lookup_table(struct gpiod_lookup_table *table)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjɥhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjȥhMubji)}(hgpiod_remove_lookup_tableh]jo)}(hgpiod_remove_lookup_tableh]hgpiod_remove_lookup_table}(hjۥhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjץubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjȥhMubj)}(h"(struct gpiod_lookup_table *table)h]j)}(h struct gpiod_lookup_table *tableh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjݥsbc.gpiod_remove_lookup_tableasbuh1hhjubjX)}(h h]h }(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(htableh]htable}(hjPhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjȥhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjȥhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjȥhMhjhhubj)}(hhh]h)}(h unregister GPIO device consumersh]h unregister GPIO device consumers}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjwhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjȥhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hW**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to unregisterh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(hE``struct gpiod_lookup_table *table`` table of consumers to unregisterh](j)}(h$``struct gpiod_lookup_table *table``h]j$)}(hjh]h struct gpiod_lookup_table *table}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h table of consumers to unregisterh]h table of consumers to unregister}(hjԦhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjѦubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjЦhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0#fwnode_gpiod_get_index (C function)c.fwnode_gpiod_get_indexhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hstruct gpio_desc * fwnode_gpiod_get_index (struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h]j@)}(hstruct gpio_desc *fwnode_gpiod_get_index(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj"hMubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj4hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j)}jfwnode_gpiod_get_indexsbc.fwnode_gpiod_get_indexasbuh1hhjhhhj"hMubjX)}(h h]h }(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj"hMubj)}(hjh]h*}(hjchhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj"hMubji)}(hfwnode_gpiod_get_indexh]jo)}(hjRh]hfwnode_gpiod_get_index}(hjthhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjpubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj"hMubj)}(hh(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j)}(hstruct fwnode_handle *fwnodeh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jPc.fwnode_gpiod_get_indexasbuh1hhjubjX)}(h h]h }(hj˧hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj٧hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hjChhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int indexh](j)}(hinth]hint}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjX)}(h h]h }(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXubjo)}(hindexh]hindex}(hjxhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjXubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jPc.fwnode_gpiod_get_indexasbuh1hhjubjX)}(h h]h }(hjͨhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjۨhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *labelh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hlabelh]hlabel}(hj8hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj"hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj hhhj"hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj"hMhj hhubj)}(hhh]h)}(h obtain a GPIO from firmware nodeh]h obtain a GPIO from firmware node}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj_hhubah}(h]h ]h"]h$]h&]uh1jhj hhhj"hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjzjjzjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct fwnode_handle *fwnode`` handle of the firmware node ``const char *con_id`` function within the GPIO consumer ``int index`` index of the GPIO to obtain for the consumer ``enum gpiod_flags flags`` GPIO initialization flags ``const char *label`` label to attach to the requested GPIO **Description** This function can be used for drivers that get their configuration from opaque firmware. The function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller. In case of error an ERR_PTR() is returned. **Return** On successful request the GPIO pin is configured in accordance with provided **flags**.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubj)}(hhh](j)}(h=``struct fwnode_handle *fwnode`` handle of the firmware node h](j)}(h ``struct fwnode_handle *fwnode``h]j$)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(hhandle of the firmware nodeh]hhandle of the firmware node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjܩh]hconst char *con_id}(hjީhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjکubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj֩ubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hj֩ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h;``int index`` index of the GPIO to obtain for the consumer h](j)}(h ``int index``h]j$)}(hjh]h int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h,index of the GPIO to obtain for the consumerh]h,index of the GPIO to obtain for the consumer}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj*hMhj+ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj*hMhjubj)}(h5``enum gpiod_flags flags`` GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjNh]henum gpiod_flags flags}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjLubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjHubj:)}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hhjchMhjdubah}(h]h ]h"]h$]h&]uh1j9hjHubeh}(h]h ]h"]h$]h&]uh1jhjchMhjubj)}(h<``const char *label`` label to attach to the requested GPIO h](j)}(h``const char *label``h]j$)}(hjh]hconst char *label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h%label to attach to the requested GPIOh]h%label to attach to the requested GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj~ubh)}(h**Description**h]j)}(hjªh]h Description}(hjĪhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubh)}(hXThis function can be used for drivers that get their configuration from opaque firmware.h]hXThis function can be used for drivers that get their configuration from opaque firmware.}(hjتhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubh)}(hThe function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller.h]hThe function properly finds the corresponding GPIO using whatever is the underlying firmware interface and then makes sure that the GPIO descriptor is requested before it is returned to the caller.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubh)}(h*In case of error an ERR_PTR() is returned.h]h*In case of error an ERR_PTR() is returned.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubh)}(hWOn successful request the GPIO pin is configured in accordance with provided **flags**.h](hMOn successful request the GPIO pin is configured in accordance with provided }(hjhhhNhNubj)}(h **flags**h]hflags}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj~ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_count (C function) c.gpiod_counthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h8int gpiod_count (struct device *dev, const char *con_id)h]j@)}(h7int gpiod_count(struct device *dev, const char *con_id)h](j)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjZhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjZhhhjlhMubji)}(h gpiod_counth]jo)}(h gpiod_counth]h gpiod_count}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj{ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjZhhhjlhMubj)}(h((struct device *dev, const char *con_id)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb c.gpiod_countasbuh1hhjubjX)}(h h]h }(hj٫hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubj)}(hcharh]hchar}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjX)}(h h]h }(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj ubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjo)}(hcon_idh]hcon_id}(hjQhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjZhhhjlhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjVhhhjlhMubah}(h]jQah ](jjeh"]h$]h&]jj)jhuh1j9hjlhMhjShhubj)}(hhh]h)}(h>return the number of GPIOs associated with a device / functionh]h>return the number of GPIOs associated with a device / function}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjShhhjlhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer **Return** The number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjլhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjѬhMhjҬubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjѬhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hj0h]hReturn}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hzThe number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.h]hzThe number of GPIOs associated with a device / function or -ENOENT if no GPIO has been assigned to the requested function.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_get (C function) c.gpiod_gethNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h]struct gpio_desc * gpiod_get (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(h[struct gpio_desc *gpiod_get(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjuhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjqhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM.ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqhhhjhM.ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}j gpiod_getsb c.gpiod_getasbuh1hhjqhhhjhM.ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqhhhjhM.ubj)}(hjh]h*}(hjíhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM.ubji)}(h gpiod_geth]jo)}(hjh]h gpiod_get}(hjԭhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjЭubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjqhhhjhM.ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j c.gpiod_getasbuh1hhjubjX)}(h h]h }(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj[ubjX)}(h h]h }(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubj)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjɮhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjڮhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj׮ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjܮmodnameN classnameNjj)}j]j c.gpiod_getasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhM.ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjmhhhjhM.ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j9hjhM.hjjhhubj)}(hhh]h)}(h'obtain a GPIO for a given GPIO functionh]h'obtain a GPIO for a given GPIO function}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM.hj-hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM.ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM2hjLubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjqh]hstruct device *dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM/hjkubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM/hjubah}(h]h ]h"]h$]h&]uh1j9hjkubeh}(h]h ]h"]h$]h&]uh1jhjhM/hjhubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM0hjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjïhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjhubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM1hjݯubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j9hjݯubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjhubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h **Return**h]j)}(hjh]hReturn}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3hjLubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj4hhhNhNubj)}(h **con_id**h]hcon_id}(hj<hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubh of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj4hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM3hjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_get_optional (C function)c.gpiod_get_optionalhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hfstruct gpio_desc * gpiod_get_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(hdstruct gpio_desc *gpiod_get_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjuhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjqhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM@ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqhhhjhM@ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jgpiod_get_optionalsbc.gpiod_get_optionalasbuh1hhjqhhhjhM@ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqhhhjhM@ubj)}(hjh]h*}(hjðhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqhhhjhM@ubji)}(hgpiod_get_optionalh]jo)}(hjh]hgpiod_get_optional}(hj԰hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjаubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjqhhhjhM@ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_optionalasbuh1hhjubjX)}(h h]h }(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjFhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj_hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj[ubjX)}(h h]h }(hjlhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubj)}(hcharh]hchar}(hjzhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj[ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[ubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj[ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjɱhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjڱhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjױubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjܱmodnameN classnameNjj)}j]jc.gpiod_get_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjqhhhjhM@ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjmhhhjhM@ubah}(h]jhah ](jjeh"]h$]h&]jj)jhuh1j9hjhM@hjjhhubj)}(hhh]h)}(h1obtain an optional GPIO for a given GPIO functionh]h1obtain an optional GPIO for a given GPIO function}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chM@hj-hhubah}(h]h ]h"]h$]h&]uh1jhjjhhhjhM@ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjHjjHjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjRh]h Parameters}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMDhjLubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjqh]hstruct device *dev}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjoubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMAhjkubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMAhjubah}(h]h ]h"]h$]h&]uh1j9hjkubeh}(h]h ]h"]h$]h&]uh1jhjhMAhjhubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMBhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer<}(hjòhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMBhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMBhjhubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMChjݲubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMChjubah}(h]h ]h"]h$]h&]uh1j9hjݲubeh}(h]h ]h"]h$]h&]uh1jhjhMChjhubeh}(h]h ]h"]h$]h&]uh1jhjLubh)}(h**Description**h]j)}(hjh]h Description}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMEhjLubh)}(hThis is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.h]hThis is equivalent to gpiod_get(), except that when no GPIO was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMDhjLubh)}(h **Return**h]j)}(hjEh]hReturn}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMHhjLubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj[hhhNhNubj)}(h **con_id**h]hcon_id}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj[ubh of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj[hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMIhjLubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_get_index (C function)c.gpiod_get_indexhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hustruct gpio_desc * gpiod_get_index (struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h]j@)}(hsstruct gpio_desc *gpiod_get_index(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jgpiod_get_indexsbc.gpiod_get_indexasbuh1hhjhhhjhMubjX)}(h h]h }(hjܳhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubji)}(hgpiod_get_indexh]jo)}(hjٳh]hgpiod_get_index}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hj4hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj6modnameN classnameNjj)}j]j׳c.gpiod_get_indexasbuh1hhjubjX)}(h h]h }(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjmhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hjʴhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int idxh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߴubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjߴubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjߴubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjߴubjo)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjߴubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hj4hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj0ubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjRhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjOubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjTmodnameN classnameNjj)}j]j׳c.gpiod_get_indexasbuh1hhj0ubjX)}(h h]h }(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj0ubjo)}(hflagsh]hflags}(hj~hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj0ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h.obtain a GPIO from a multi-index GPIO functionh]h.obtain a GPIO from a multi-index GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hXn**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``unsigned int idx`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs. **Return** A valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjʵh]h Parameters}(hj̵hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjȵubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjĵubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hj"h]hconst char *con_id}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(hA``unsigned int idx`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int idx``h]j$)}(hj[h]hunsigned int idx}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjUubj:)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1j9hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjĵubh)}(h**Description**h]j)}(hj϶h]h Description}(hjѶhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjͶubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjĵubh)}(h|This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs.h]h|This variant of gpiod_get() allows to access GPIOs other than the first defined one for functions that define several GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjĵubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjĵubh)}(hA valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h]hA valid GPIO descriptor, -ENOENT if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjĵubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%gpiod_get_index_optional (C function)c.gpiod_get_index_optionalhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hstruct gpio_desc * gpiod_get_index_optional (struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h]j@)}(h~struct gpio_desc *gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hj;hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj7hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjIhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7hhhjHhMubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjZhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjWubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj\modnameN classnameNjj)}j]j)}jgpiod_get_index_optionalsbc.gpiod_get_index_optionalasbuh1hhj7hhhjHhMubjX)}(h h]h }(hj{hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj7hhhjHhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7hhhjHhMubji)}(hgpiod_get_index_optionalh]jo)}(hjxh]hgpiod_get_index_optional}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj7hhhjHhMubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj·hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjӷhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjзubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjշmodnameN classnameNjj)}j]jvc.gpiod_get_index_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj%hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj!ubjX)}(h h]h }(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubj)}(hcharh]hchar}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjX)}(h h]h }(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj!ubj)}(hjh]h*}(hj\hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjo)}(hcon_idh]hcon_id}(hjihhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj!ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj~ubjo)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj~ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjӸhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjϸubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjϸubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jvc.gpiod_get_index_optionalasbuh1hhjϸubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjϸubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjϸubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhj7hhhjHhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj3hhhjHhMubah}(h]j.ah ](jjeh"]h$]h&]jj)jhuh1j9hjHhMhj0hhubj)}(hhh]h)}(h8obtain an optional GPIO from a multi-index GPIO functionh]h8obtain an optional GPIO from a multi-index GPIO function}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjDhhubah}(h]h ]h"]h$]h&]uh1jhj0hhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``unsigned int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs. **Return** A valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjcubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjùhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjڹhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjֹhMhj׹ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjֹhMhjubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j$)}(hjh]hunsigned int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hj3h]henum gpiod_flags flags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj1ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj-ubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjHhMhjIubah}(h]h ]h"]h$]h&]uh1j9hj-ubeh}(h]h ]h"]h$]h&]uh1jhjHhMhjubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hjnh]h Description}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjcubh)}(hThis is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.h]hThis is equivalent to gpiod_get_index(), except that when no GPIO with the specified index was assigned to the requested function it will return NULL. This is convenient for drivers that need to handle optional GPIOs.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjcubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjcubh)}(hA valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h]hA valid GPIO descriptor, NULL if no GPIO has been assigned to the requested function and/or index, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjcubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_get_array (C function)c.gpiod_get_arrayhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hdstruct gpio_descs * gpiod_get_array (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(hbstruct gpio_descs *gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjںhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjֺhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjֺhhhjhMubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jgpiod_get_arraysbc.gpiod_get_arrayasbuh1hhjֺhhhjhMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjֺhhhjhMubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjֺhhhjhMubji)}(hgpiod_get_arrayh]jo)}(hjh]hgpiod_get_array}(hj9hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj5ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjֺhhhjhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjThhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjPubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubh)}(hhh]jo)}(hdeviceh]hdevice}(hjrhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhjPubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjo)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjĻhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjѻhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hj߻hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hj!hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hj?hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjAmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhjubjX)}(h h]h }(hj]hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjkhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubeh}(h]h ]h"]h$]h&]jjuh1jhjֺhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjҺhhhjhMubah}(h]jͺah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjϺhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjϺhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This function acquires all the GPIOs defined under a given function. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjּh]hstruct device *dev}(hjؼhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjԼubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjмubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjмubeh}(h]h ]h"]h$]h&]uh1jhjhMhjͼubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj ubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj%ubah}(h]h ]h"]h$]h&]uh1j9hj ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhjͼubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjHh]henum gpiod_flags flags}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjFubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjBubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hhj]hMhj^ubah}(h]h ]h"]h$]h&]uh1j9hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hMhjͼubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hDThis function acquires all the GPIOs defined under a given function.h]hDThis function acquires all the GPIOs defined under a given function.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjȽhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, -ENOENT if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0%gpiod_get_array_optional (C function)c.gpiod_get_array_optionalhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hmstruct gpio_descs * gpiod_get_array_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(hkstruct gpio_descs *gpiod_get_array_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj"modnameN classnameNjj)}j]j)}jgpiod_get_array_optionalsbc.gpiod_get_array_optionalasbuh1hhjhhhjhMubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubji)}(hgpiod_get_array_optionalh]jo)}(hj>h]hgpiod_get_array_optional}(hj`hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj\ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hj{hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjwubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j<c.gpiod_get_array_optionalasbuh1hhjwubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjwubj)}(hjh]h*}(hjžhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwubjo)}(hdevh]hdev}(hjҾhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjwubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hj/hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjHhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjDubjX)}(h h]h }(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjfhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjhmodnameN classnameNjj)}j]j<c.gpiod_get_array_optionalasbuh1hhjDubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjDubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjDubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjsubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjԿjjԿjjjuh1j4hhhjhNhNubj)}(hXP**Parameters** ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hj޿h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܿubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjؿubj)}(hhh](j)}(hJ``struct device *dev`` GPIO consumer, can be NULL for system-global GPIOs h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hj6h]hconst char *con_id}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj4ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj0ubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjKhMhjLubah}(h]h ]h"]h$]h&]uh1j9hj0ubeh}(h]h ]h"]h$]h&]uh1jhjKhMhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjoh]henum gpiod_flags flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjmubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjiubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjiubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjؿubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjؿubh)}(h}This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL.h]h}This is equivalent to gpiod_get_array(), except that when no GPIO was assigned to the requested function it will return NULL.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjؿubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjؿubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjؿubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_put (C function) c.gpiod_puthNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h'void gpiod_put (struct gpio_desc *desc)h]j@)}(h&void gpiod_put(struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj$hhhj6hMubji)}(h gpiod_puth]jo)}(h gpiod_puth]h gpiod_put}(hjIhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjEubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj$hhhj6hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjehhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjaubjX)}(h h]h }(hjrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjKsb c.gpiod_putasbuh1hhjaubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjaubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjaubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj]ubah}(h]h ]h"]h$]h&]jjuh1jhj$hhhj6hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj hhhj6hMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj6hMhjhhubj)}(hhh]h)}(hdispose of a GPIO descriptorh]hdispose of a GPIO descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj6hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_desc *desc`` GPIO descriptor to dispose of **Description** No descriptor can be used after gpiod_put() has been called on it.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j$)}(hj)h]hstruct gpio_desc *desc}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj'ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhj#ubj:)}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j9hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubh)}(hBNo descriptor can be used after gpiod_put() has been called on it.h]hBNo descriptor can be used after gpiod_put() has been called on it.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_put_array (C function)c.gpiod_put_arrayhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h/void gpiod_put_array (struct gpio_descs *descs)h]j@)}(h.void gpiod_put_array(struct gpio_descs *descs)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hgpiod_put_arrayh]jo)}(hgpiod_put_arrayh]hgpiod_put_array}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h(struct gpio_descs *descs)h]j)}(hstruct gpio_descs *descsh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.gpiod_put_arrayasbuh1hhjubjX)}(h h]h }(hj$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdescsh]hdescs}(hj?hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h$dispose of multiple GPIO descriptorsh]h$dispose of multiple GPIO descriptors}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(hc**Parameters** ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj)}(hhh]j)}(hQ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](j)}(h``struct gpio_descs *descs``h]j$)}(hjh]hstruct gpio_descs *descs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubj:)}(hhh]h)}(h4struct gpio_descs containing an array of descriptorsh]h4struct gpio_descs containing an array of descriptors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:26: ./drivers/gpio/gpiolib.chMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]coreah ]h"]coreah$]h&]uh1hhhhhhhhKubh)}(hhh](h)}(h ACPI supporth]h ACPI support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhKubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0&acpi_gpio_get_io_resource (C function)c.acpi_gpio_get_io_resourcehNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h^bool acpi_gpio_get_io_resource (struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h]j@)}(h]bool acpi_gpio_get_io_resource(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](j)}(hjT,h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKubjX)}(h h]h }(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj*hKubji)}(hacpi_gpio_get_io_resourceh]jo)}(hacpi_gpio_get_io_resourceh]hacpi_gpio_get_io_resource}(hj=hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj9ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj*hKubj)}(h?(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](j)}(hstruct acpi_resource *aresh](jF)}(hjIh]hstruct}(hjYhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjUubjX)}(h h]h }(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUubh)}(hhh]jo)}(h acpi_resourceh]h acpi_resource}(hjwhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jj?sbc.acpi_gpio_get_io_resourceasbuh1hhjUubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjo)}(haresh]hares}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjUubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubj)}(h!struct acpi_resource_gpio **agpioh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hacpi_resource_gpioh]hacpi_resource_gpio}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.acpi_gpio_get_io_resourceasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hagpioh]hagpio}(hj/hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjQubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj*hKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj*hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj*hKhjhhubj)}(hhh]h)}(hVFetch details of an ACPI resource if it is a GPIO I/O resource or return False if not.h]hVFetch details of an ACPI resource if it is a GPIO I/O resource or return False if not.}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjVhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj*hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjqjjqjjjuh1j4hhhjhNhNubj)}(hX)**Parameters** ``struct acpi_resource *ares`` Pointer to the ACPI resource to fetch ``struct acpi_resource_gpio **agpio`` Pointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointer **Return** ``true`` if GpioIo resource is found, ``false`` otherwise.h](h)}(h**Parameters**h]j)}(hj{h]h Parameters}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjyubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjuubj)}(hhh](j)}(hE``struct acpi_resource *ares`` Pointer to the ACPI resource to fetch h](j)}(h``struct acpi_resource *ares``h]j$)}(hjh]hstruct acpi_resource *ares}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjubj:)}(hhh]h)}(h%Pointer to the ACPI resource to fetchh]h%Pointer to the ACPI resource to fetch}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``struct acpi_resource_gpio **agpio`` Pointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointer h](j)}(h%``struct acpi_resource_gpio **agpio``h]j$)}(hjh]h!struct acpi_resource_gpio **agpio}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjubj:)}(hhh]h)}(haPointer to a :c:type:`struct acpi_resource_gpio ` to store the output pointerh](h Pointer to a }(hjhhhNhNubh)}(h8:c:type:`struct acpi_resource_gpio `h]j$)}(hjh]hstruct acpi_resource_gpio}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]refdoch refdomainjreftypetype refexplicitrefwarnjjjacpi_resource_gpiouh1hhjhKhjubh to store the output pointer}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjuubh)}(h **Return**h]j)}(hj1h]hReturn}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjuubh)}(h:``true`` if GpioIo resource is found, ``false`` otherwise.h](j$)}(h``true``h]htrue}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubh if GpioIo resource is found, }(hjGhhhNhNubj$)}(h ``false``h]hfalse}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjGubh otherwise.}(hjGhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chKhjuubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0-acpi_gpiochip_request_interrupts (C function)"c.acpi_gpiochip_request_interruptshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h>void acpi_gpiochip_request_interrupts (struct gpio_chip *chip)h]j@)}(h=void acpi_gpiochip_request_interrupts(struct gpio_chip *chip)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(h acpi_gpiochip_request_interruptsh]jo)}(h acpi_gpiochip_request_interruptsh]h acpi_gpiochip_request_interrupts}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h(struct gpio_chip *chip)h]j)}(hstruct gpio_chip *chiph](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsb"c.acpi_gpiochip_request_interruptsasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hchiph]hchip}(hj,hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h&Register isr for gpio chip ACPI eventsh]h&Register isr for gpio chip ACPI events}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjShhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjnjjnjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct gpio_chip *chip`` GPIO chip **Description** ACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip's interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.h](h)}(h**Parameters**h]j)}(hjxh]h Parameters}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjrubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j$)}(hjh]hstruct gpio_chip *chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubj:)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjrubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjrubh)}(hXPACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip's interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.h]hXRACPI5 platforms can use GPIO signaled ACPI events. These GPIO interrupts are handled by ACPI event methods which need to be called from the GPIO chip’s interrupt handler. acpi_gpiochip_request_interrupts() finds out which GPIO pins have ACPI event methods and assigns interrupt handlers that calls the ACPI event methods for those pins.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjrubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*acpi_gpiochip_free_interrupts (C function)c.acpi_gpiochip_free_interruptshNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(h;void acpi_gpiochip_free_interrupts (struct gpio_chip *chip)h]j@)}(h:void acpi_gpiochip_free_interrupts(struct gpio_chip *chip)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMubjX)}(h h]h }(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj%hMubji)}(hacpi_gpiochip_free_interruptsh]jo)}(hacpi_gpiochip_free_interruptsh]hacpi_gpiochip_free_interrupts}(hj8hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj4ubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj%hMubj)}(h(struct gpio_chip *chip)h]j)}(hstruct gpio_chip *chiph](jF)}(hjIh]hstruct}(hjThhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjPubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjrhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jj:sbc.acpi_gpiochip_free_interruptsasbuh1hhjPubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjPubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjo)}(hchiph]hchip}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjPubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjLubah}(h]h ]h"]h$]h&]jjuh1jhjhhhj%hMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj%hMubah}(h]j ah ](jjeh"]h$]h&]jj)jhuh1j9hj%hMhj hhubj)}(hhh]h)}(h Free GPIO ACPI event interrupts.h]h Free GPIO ACPI event interrupts.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhjhNhNubj)}(h**Parameters** ``struct gpio_chip *chip`` GPIO chip **Description** Free interrupts associated with GPIO ACPI event method for the given GPIO chip.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j$)}(hjh]hstruct gpio_chip *chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubj:)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj-hMhj.ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj-hMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjSh]h Description}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjQubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(hOFree interrupts associated with GPIO ACPI event method for the given GPIO chip.h]hOFree interrupts associated with GPIO ACPI event method for the given GPIO chip.}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*acpi_dev_gpio_irq_wake_get_by (C function)c.acpi_dev_gpio_irq_wake_get_byhNtauh1j#hjhhhNhNubj5)}(hhh](j:)}(hoint acpi_dev_gpio_irq_wake_get_by (struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h]j@)}(hnint acpi_dev_gpio_irq_wake_get_by(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hacpi_dev_gpio_irq_wake_get_byh]jo)}(hacpi_dev_gpio_irq_wake_get_byh]hacpi_dev_gpio_irq_wake_get_by}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(hM(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](j)}(hstruct acpi_device *adevh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.acpi_dev_gpio_irq_wake_get_byasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hadevh]hadev}(hj.hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjGhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjCubjX)}(h h]h }(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCubj)}(hcharh]hchar}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjX)}(h h]h }(hjphhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjCubj)}(hjh]h*}(hj~hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjCubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjCubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool *wake_capableh](j)}(hjT,h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h wake_capableh]h wake_capable}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h1Find GpioInt and translate it to Linux IRQ numberh]h1Find GpioInt and translate it to Linux IRQ number}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhj(hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjCjjCjjjuh1j4hhhjhNhNubj)}(hX**Parameters** ``struct acpi_device *adev`` pointer to a ACPI device to get IRQ from ``const char *con_id`` optional name of GpioInt resource ``int index`` index of GpioInt resource (starting from ``0``) ``bool *wake_capable`` Set to true if the IRQ is wake capable **Description** If the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number. The function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource. The function takes optional **con_id** parameter. If the resource has a **con_id** in a property, then only those will be taken into account. The GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake. **Return** Linux IRQ number (> 0) on success, negative errno on failure.h](h)}(h**Parameters**h]j)}(hjMh]h Parameters}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubj)}(hhh](j)}(hF``struct acpi_device *adev`` pointer to a ACPI device to get IRQ from h](j)}(h``struct acpi_device *adev``h]j$)}(hjlh]hstruct acpi_device *adev}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjfubj:)}(hhh]h)}(h(pointer to a ACPI device to get IRQ fromh]h(pointer to a ACPI device to get IRQ from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjfubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h9``const char *con_id`` optional name of GpioInt resource h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubj:)}(hhh]h)}(h!optional name of GpioInt resourceh]h!optional name of GpioInt resource}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h>``int index`` index of GpioInt resource (starting from ``0``) h](j)}(h ``int index``h]j$)}(hjh]h int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjubj:)}(hhh]h)}(h/index of GpioInt resource (starting from ``0``)h](h)index of GpioInt resource (starting from }(hjhhhNhNubj$)}(h``0``h]h0}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh)}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjcubj)}(h>``bool *wake_capable`` Set to true if the IRQ is wake capable h](j)}(h``bool *wake_capable``h]j$)}(hj)h]hbool *wake_capable}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj'ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhj#ubj:)}(hhh]h)}(h&Set to true if the IRQ is wake capableh]h&Set to true if the IRQ is wake capable}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj>hMhj?ubah}(h]h ]h"]h$]h&]uh1j9hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhjcubeh}(h]h ]h"]h$]h&]uh1jhjGubh)}(h**Description**h]j)}(hjdh]h Description}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(hIf the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number.h]hIf the device has one or more GpioInt resources, this function can be used to translate from the GPIO offset in the resource to the Linux IRQ number.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(hThe function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource.h]hThe function is idempotent, though each time it runs it will configure GPIO pin direction according to the flags in GpioInt resource.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(hThe function takes optional **con_id** parameter. If the resource has a **con_id** in a property, then only those will be taken into account.h](hThe function takes optional }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh" parameter. If the resource has a }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh; in a property, then only those will be taken into account.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(hhThe GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake.h]hhThe GPIO is considered wake capable if the GpioInt resource specifies SharedAndWake or ExclusiveAndWake.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubh)}(h=Linux IRQ number (> 0) on success, negative errno on failure.h]h=Linux IRQ number (> 0) on success, negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:32: ./drivers/gpio/gpiolib-acpi-core.chMhjGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] acpi-supportah ]h"] acpi supportah$]h&]uh1hhhhhhhhKubh)}(hhh]h)}(hDevice tree supporth]hDevice tree support}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK$ubah}(h]device-tree-supportah ]h"]device tree supportah$]h&]uh1hhhhhhhhK$ubh)}(hhh](h)}(hDevice-managed APIh]hDevice-managed API}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hhhhhK*ubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0devm_gpiod_get (C function)c.devm_gpiod_gethNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hbstruct gpio_desc * devm_gpiod_get (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(h`struct gpio_desc *devm_gpiod_get(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjShhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjOhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK!ubjX)}(h h]h }(hjahhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOhhhj`hK!ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjrhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjoubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjtmodnameN classnameNjj)}j]j)}jdevm_gpiod_getsbc.devm_gpiod_getasbuh1hhjOhhhj`hK!ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjOhhhj`hK!ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjOhhhj`hK!ubji)}(hdevm_gpiod_geth]jo)}(hjh]hdevm_gpiod_get}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjOhhhj`hK!ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj$hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj=hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj9ubjX)}(h h]h }(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj9ubj)}(hcharh]hchar}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjX)}(h h]h }(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj9ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj9ubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj9ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjOhhhj`hK!ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjKhhhj`hK!ubah}(h]jFah ](jjeh"]h$]h&]jj)jhuh1j9hj`hK!hjHhhubj)}(hhh]h)}(hResource-managed gpiod_get()h]hResource-managed gpiod_get()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK!hj hhubah}(h]h ]h"]h$]h&]uh1jhjHhhhj`hK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj&jj&jjjuh1j4hhhj)hNhNubj)}(hXl**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hj0h]h Parameters}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK%hj*ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjOh]hstruct device *dev}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjMubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK"hjIubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjdhK"hjeubah}(h]h ]h"]h$]h&]uh1j9hjIubeh}(h]h ]h"]h$]h&]uh1jhjdhK"hjFubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK#hjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK#hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjFubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK$hjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK$hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjFubeh}(h]h ]h"]h$]h&]uh1jhj*ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK&hj*ubh)}(hManaged gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values.h]hManaged gpiod_get(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK%hj*ubh)}(h **Return**h]j)}(hj#h]hReturn}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj!ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK)hj*ubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj9hhhNhNubj)}(h **con_id**h]hcon_id}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj9ubh of device dev, }(hj9hhhNhNubj$)}(h ``-ENOENT``h]h-ENOENT}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj9hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK*hj*ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0$devm_gpiod_get_optional (C function)c.devm_gpiod_get_optionalhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hkstruct gpio_desc * devm_gpiod_get_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(histruct gpio_desc *devm_gpiod_get_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK8ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhK8ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdevm_gpiod_get_optionalsbc.devm_gpiod_get_optionalasbuh1hhjhhhjhK8ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhK8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK8ubji)}(hdevm_gpiod_get_optionalh]jo)}(hjh]hdevm_gpiod_get_optional}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhK8ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hj$hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj!ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj&modnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhjubjX)}(h h]h }(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj]hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjvhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjrubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjrubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhK8ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhK8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhK8hjhhubj)}(hhh]h)}(h%Resource-managed gpiod_get_optional()h]h%Resource-managed gpiod_get_optional()}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK8hjDhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj_jj_jjjuh1j4hhhj)hNhNubj)}(hXw**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, NULL if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjih]h Parameters}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK;hjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK;hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhK;hjubeh}(h]h ]h"]h$]h&]uh1jhjcubh)}(h**Description**h]j)}(hj5h]h Description}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK=hjcubh)}(hManaged gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_optional() for detailed information about behavior and return values.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chK``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKShjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKShjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKShjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKUhjubh)}(hManaged gpiod_get_index(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index() for detailed information about behavior and return values.h]hManaged gpiod_get_index(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKThjubh)}(h **Return**h]j)}(hj h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKXhjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj#hhhNhNubj)}(h **con_id**h]hcon_id}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj#ubh of device dev, }(hj#hhhNhNubj$)}(h ``-ENOENT``h]h-ENOENT}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj#ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj#hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0(devm_fwnode_gpiod_get_index (C function)c.devm_fwnode_gpiod_get_indexhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hstruct gpio_desc * devm_fwnode_gpiod_get_index (struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h]j@)}(hstruct gpio_desc *devm_fwnode_gpiod_get_index(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](jF)}(hjIh]hstruct}(hjvhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjrhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrhhhjhKubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jdevm_fwnode_gpiod_get_indexsbc.devm_fwnode_gpiod_get_indexasbuh1hhjrhhhjhKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjrhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrhhhjhKubji)}(hdevm_fwnode_gpiod_get_indexh]jo)}(hjh]hdevm_fwnode_gpiod_get_index}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjrhhhjhKubj)}(h|(struct device *dev, struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjubjX)}(h h]h }(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjGhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct fwnode_handle *fwnodeh](jF)}(hjIh]hstruct}(hj`hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj\ubjX)}(h h]h }(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj\ubh)}(hhh]jo)}(h fwnode_handleh]h fwnode_handle}(hj~hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj{ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhj\ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj\ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj\ubjo)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj\ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(h int indexh](j)}(hinth]hint}(hj-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjX)}(h h]h }(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj)ubjo)}(hindexh]hindex}(hjIhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj)ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjbhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj^ubjX)}(h h]h }(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj^ubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj}ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhj^ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj^ubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj^ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *labelh](jF)}(hjh]hconst}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hlabelh]hlabel}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjrhhhjhKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjnhhhjhKubah}(h]jiah ](jjeh"]h$]h&]jj)jhuh1j9hjhKhjkhhubj)}(hhh]h)}(h'get a GPIO descriptor from a given nodeh]h'get a GPIO descriptor from a given node}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjkhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1j4hhhj)hNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``struct fwnode_handle *fwnode`` firmware node containing GPIO reference ``const char *con_id`` function within the GPIO consumer ``int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` GPIO initialization flags ``const char *label`` label to attach to the requested GPIO **Description** GPIO descriptors returned from this function are automatically disposed on driver detach. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjOubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjth]hstruct device *dev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjrubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjnubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubj)}(hI``struct fwnode_handle *fwnode`` firmware node containing GPIO reference h](j)}(h ``struct fwnode_handle *fwnode``h]j$)}(hjh]hstruct fwnode_handle *fwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h'firmware node containing GPIO referenceh]h'firmware node containing GPIO reference}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubj)}(h:``int index`` index of the GPIO to obtain in the consumer h](j)}(h ``int index``h]j$)}(hjh]h int index}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj4hKhj5ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj4hKhjkubj)}(h5``enum gpiod_flags flags`` GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjXh]henum gpiod_flags flags}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjVubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjRubj:)}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhKhjnubah}(h]h ]h"]h$]h&]uh1j9hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhKhjkubj)}(h<``const char *label`` label to attach to the requested GPIO h](j)}(h``const char *label``h]j$)}(hjh]hconst char *label}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h%label to attach to the requested GPIOh]h%label to attach to the requested GPIO}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjOubh)}(hYGPIO descriptors returned from this function are automatically disposed on driver detach.h]hYGPIO descriptors returned from this function are automatically disposed on driver detach.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjOubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjOubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hj hhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubh of device dev, }(hj hhhNhNubj$)}(h ``-ENOENT``h]h-ENOENT}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hj hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*devm_gpiod_get_index_optional (C function)c.devm_gpiod_get_index_optionalhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hstruct gpio_desc * devm_gpiod_get_index_optional (struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h]j@)}(hstruct gpio_desc *devm_gpiod_get_index_optional(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hj\hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjXhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKubjX)}(h h]h }(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXhhhjihKubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj{hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjxubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj}modnameN classnameNjj)}j]j)}jdevm_gpiod_get_index_optionalsbc.devm_gpiod_get_index_optionalasbuh1hhjXhhhjihKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjXhhhjihKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXhhhjihKubji)}(hdevm_gpiod_get_index_optionalh]jo)}(hjh]hdevm_gpiod_get_index_optional}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjXhhhjihKubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj-hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjFhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjBubjX)}(h h]h }(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubj)}(hcharh]hchar}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjX)}(h h]h }(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjBubj)}(hjh]h*}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjBubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubjX)}(h h]h }(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hj>hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjXhhhjihKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjThhhjihKubah}(h]jOah ](jjeh"]h$]h&]jj)jhuh1j9hjihKhjQhhubj)}(hhh]h)}(h+Resource-managed gpiod_get_index_optional()h]h+Resource-managed gpiod_get_index_optional()}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjehhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjihKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj)hNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``unsigned int index`` index of the GPIO to obtain in the consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values. **Return** The GPIO descriptor corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j$)}(hjh]hunsigned int index}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjTh]henum gpiod_flags flags}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjNubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1j9hjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hManaged gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_index_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_index_optional() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hThe GPIO descriptor corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.h](h2The GPIO descriptor corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj$)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!devm_gpiod_get_array (C function)c.devm_gpiod_get_arrayhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(histruct gpio_descs * devm_gpiod_get_array (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(hgstruct gpio_descs *devm_gpiod_get_array(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKubjX)}(h h]h }(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj,hKubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hj>hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj@modnameN classnameNjj)}j]j)}jdevm_gpiod_get_arraysbc.devm_gpiod_get_arrayasbuh1hhjhhhj,hKubjX)}(h h]h }(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhj,hKubj)}(hjh]h*}(hjmhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhj,hKubji)}(hdevm_gpiod_get_arrayh]jo)}(hj\h]hdevm_gpiod_get_array}(hj~hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjzubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhj,hKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jZc.devm_gpiod_get_arrayasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hj hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hcharh]hchar}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjX)}(h h]h }(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hcon_idh]hcon_id}(hjMhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjfhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjbubjX)}(h h]h }(hjshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjbubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jZc.devm_gpiod_get_arrayasbuh1hhjbubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjbubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjbubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhj,hKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhj,hKubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj,hKhjhhubj)}(hhh]h)}(h"Resource-managed gpiod_get_array()h]h"Resource-managed gpiod_get_array()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj,hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj)hNhNubj)}(hXz**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj0hKhj1ubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj0hKhjubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjTh]hconst char *con_id}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjNubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1j9hjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hManaged gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values.h]hManaged gpiod_get_array(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, ``-ENOENT`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh of device dev, }(hjhhhNhNubj$)}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0*devm_gpiod_get_array_optional (C function)c.devm_gpiod_get_array_optionalhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hrstruct gpio_descs * devm_gpiod_get_array_optional (struct device *dev, const char *con_id, enum gpiod_flags flags)h]j@)}(hpstruct gpio_descs *devm_gpiod_get_array_optional(struct device *dev, const char *con_id, enum gpiod_flags flags)h](jF)}(hjIh]hstruct}(hjXhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjThhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKubjX)}(h h]h }(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjThhhjehKubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hjwhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjymodnameN classnameNjj)}j]j)}jdevm_gpiod_get_array_optionalsbc.devm_gpiod_get_array_optionalasbuh1hhjThhhjehKubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjThhhjehKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhjehKubji)}(hdevm_gpiod_get_array_optionalh]jo)}(hjh]hdevm_gpiod_get_array_optional}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjThhhjehKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj)hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *con_idh](jF)}(hjh]hconst}(hjBhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj>ubjX)}(h h]h }(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubj)}(hcharh]hchar}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjX)}(h h]h }(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj>ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjo)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj>ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(henum gpiod_flags flagsh](jF)}(hjWh]henum}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubjo)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjThhhjehKubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjPhhhjehKubah}(h]jKah ](jjeh"]h$]h&]jj)jhuh1j9hjehKhjMhhubj)}(hhh]h)}(h+Resource-managed gpiod_get_array_optional()h]h+Resource-managed gpiod_get_array_optional()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjehKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj+jj+jjjuh1j4hhhj)hNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``const char *con_id`` function within the GPIO consumer ``enum gpiod_flags flags`` optional GPIO initialization flags **Description** Managed gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values. **Return** The GPIO descriptors corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h)}(h**Parameters**h]j)}(hj5h]h Parameters}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj3ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj/ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjTh]hstruct device *dev}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjRubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjNubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihKhjjubah}(h]h ]h"]h$]h&]uh1j9hjNubeh}(h]h ]h"]h$]h&]uh1jhjihKhjKubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j$)}(hjh]hconst char *con_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j$)}(hjh]henum gpiod_flags flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhjubj:)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjKubeh}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj/ubh)}(hManaged gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values.h]hManaged gpiod_get_array_optional(). GPIO descriptors returned from this function are automatically disposed on driver detach. See gpiod_get_array_optional() for detailed information about behavior and return values.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj/ubh)}(h **Return**h]j)}(hj(h]hReturn}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj&ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj/ubh)}(hThe GPIO descriptors corresponding to the function **con_id** of device dev, ``NULL`` if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.h](h3The GPIO descriptors corresponding to the function }(hj>hhhNhNubj)}(h **con_id**h]hcon_id}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj>ubh of device dev, }(hj>hhhNhNubj$)}(h``NULL``h]hNULL}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj>ubh if no GPIO has been assigned to the requested function, or another IS_ERR() code if an error occurred while trying to acquire the GPIOs.}(hj>hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chKhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0devm_gpiod_put (C function)c.devm_gpiod_puthNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(h@void devm_gpiod_put (struct device *dev, struct gpio_desc *desc)h]j@)}(h?void devm_gpiod_put(struct device *dev, struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hdevm_gpiod_puth]jo)}(hdevm_gpiod_puth]hdevm_gpiod_put}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.devm_gpiod_putasbuh1hhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj'hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hj@hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj<ubjX)}(h h]h }(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<ubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hj^hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj[ubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj`modnameN classnameNjj)}j]jc.devm_gpiod_putasbuh1hhj<ubjX)}(h h]h }(hj|hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj<ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj<ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(hResource-managed gpiod_put()h]hResource-managed gpiod_put()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj)hNhNubj)}(hXF**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_desc *desc`` GPIO descriptor to dispose of **Description** Dispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM hjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j$)}(hj;h]hstruct gpio_desc *desc}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj9ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM hj5ubj:)}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhjPhM hjQubah}(h]h ]h"]h$]h&]uh1j9hj5ubeh}(h]h ]h"]h$]h&]uh1jhjPhM hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjvh]h Description}(hjxhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjtubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM hjubh)}(hDispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.h]hDispose of a GPIO descriptor obtained with devm_gpiod_get() or devm_gpiod_get_index(). Normally this function will not be called as the GPIO will be disposed of by the resource management code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0devm_gpiod_unhinge (C function)c.devm_gpiod_unhingehNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hDvoid devm_gpiod_unhinge (struct device *dev, struct gpio_desc *desc)h]j@)}(hCvoid devm_gpiod_unhinge(struct device *dev, struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hdevm_gpiod_unhingeh]jo)}(hdevm_gpiod_unhingeh]hdevm_gpiod_unhinge}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.devm_gpiod_unhingeasbuh1hhjubjX)}(h h]h }(hj6hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hjQhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjfubjX)}(h h]h }(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j2c.devm_gpiod_unhingeasbuh1hhjfubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjfubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfubjo)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjfubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h1Remove resource management from a gpio descriptorh]h1Remove resource management from a gpio descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj)hNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_desc *desc`` GPIO descriptor to remove resource management from **Description** *DEPRECATED* This function should not be used. It's been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution. Remove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.h](h)}(h**Parameters**h]j)}(hj h]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hj,h]hstruct device *dev}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj*ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhj&ubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhMhjBubah}(h]h ]h"]h$]h&]uh1j9hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhMhj#ubj)}(hN``struct gpio_desc *desc`` GPIO descriptor to remove resource management from h](j)}(h``struct gpio_desc *desc``h]j$)}(hjeh]hstruct gpio_desc *desc}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjcubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhj_ubj:)}(hhh]h)}(h2GPIO descriptor to remove resource management fromh]h2GPIO descriptor to remove resource management from}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhMhj{ubah}(h]h ]h"]h$]h&]uh1j9hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhMhj#ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjubh)}(h*DEPRECATED* This function should not be used. It's been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution.h](j{)}(h *DEPRECATED*h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jzhjubh This function should not be used. It’s been provided as a workaround for resource ownership issues in the regulator framework and should be replaced with a better solution.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjubh)}(hRemove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.h]hRemove resource management from a GPIO descriptor. This is needed when you want to hand over lifecycle management of a descriptor to another mechanism.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0!devm_gpiod_put_array (C function)c.devm_gpiod_put_arrayhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hHvoid devm_gpiod_put_array (struct device *dev, struct gpio_descs *descs)h]j@)}(hGvoid devm_gpiod_put_array(struct device *dev, struct gpio_descs *descs)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM8ubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhM8ubji)}(hdevm_gpiod_put_arrayh]jo)}(hdevm_gpiod_put_arrayh]hdevm_gpiod_put_array}(hj#hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhM8ubj)}(h.(struct device *dev, struct gpio_descs *descs)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hj?hhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhj;ubjX)}(h h]h }(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubh)}(hhh]jo)}(hdeviceh]hdevice}(hj]hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjZubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj_modnameN classnameNjj)}j]j)}jj%sbc.devm_gpiod_put_arrayasbuh1hhj;ubjX)}(h h]h }(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj;ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;ubjo)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj;ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubj)}(hstruct gpio_descs *descsh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]jyc.devm_gpiod_put_arrayasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhj7ubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhM8ubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhM8ubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhM8hjhhubj)}(hhh]h)}(h"Resource-managed gpiod_put_array()h]h"Resource-managed gpiod_put_array()}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM8hj/hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1j4hhhj)hNhNubj)}(hXF**Parameters** ``struct device *dev`` GPIO consumer ``struct gpio_descs *descs`` GPIO descriptor array to dispose of **Description** Dispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.h](h)}(h**Parameters**h]j)}(hjTh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM<hjNubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j$)}(hjsh]hstruct device *dev}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjqubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM9hjmubj:)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j9hjmubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjjubj)}(hA``struct gpio_descs *descs`` GPIO descriptor array to dispose of h](j)}(h``struct gpio_descs *descs``h]j$)}(hjh]hstruct gpio_descs *descs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM:hjubj:)}(hhh]h)}(h#GPIO descriptor array to dispose ofh]h#GPIO descriptor array to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM:hjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjjubeh}(h]h ]h"]h$]h&]uh1jhjNubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM<hjNubh)}(hDispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.h]hDispose of an array of GPIO descriptors obtained with devm_gpiod_get_array(). Normally this function will not be called as the GPIOs will be disposed of by the resource management code.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chM;hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0,devm_gpiochip_add_data_with_key (C function)!c.devm_gpiochip_add_data_with_keyhNtauh1j#hj)hhhNhNubj5)}(hhh](j:)}(hint devm_gpiochip_add_data_with_key (struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h]j@)}(hint devm_gpiochip_add_data_with_key(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h](j)}(hinth]hint}(hj,hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(hhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMNubjX)}(h h]h }(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj(hhhj:hMNubji)}(hdevm_gpiochip_add_data_with_keyh]jo)}(hdevm_gpiochip_add_data_with_keyh]hdevm_gpiochip_add_data_with_key}(hjMhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjIubah}(h]h ](jjeh"]h$]h&]jjuh1jhhj(hhhj:hMNubj)}(h{(struct device *dev, struct gpio_chip *gc, void *data, struct lock_class_key *lock_key, struct lock_class_key *request_key)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjihhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjeubjX)}(h h]h }(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjeubh)}(hhh]jo)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjOsb!c.devm_gpiochip_add_data_with_keyasbuh1hhjeubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjo)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjeubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct gpio_chip *gch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hgch]hgc}(hj2hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(h void *datah](j)}(hvoidh]hvoid}(hjKhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjX)}(h h]h }(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjGubj)}(hjh]h*}(hjghhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjo)}(hdatah]hdata}(hjthhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjGubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(hstruct lock_class_key *lock_keyh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hlock_keyh]hlock_key}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubj)}(h"struct lock_class_key *request_keyh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjX)}(h h]h }(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(h request_keyh]h request_key}(hjThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjaubeh}(h]h ]h"]h$]h&]jjuh1jhj(hhhj:hMNubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhj$hhhj:hMNubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hj:hMNhj!hhubj)}(hhh]h)}(h-Resource managed gpiochip_add_data_with_key()h]h-Resource managed gpiochip_add_data_with_key()}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMNhj{hhubah}(h]h ]h"]h$]h&]uh1jhj!hhhj:hMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj)hNhNubj)}(hX**Parameters** ``struct device *dev`` pointer to the device that gpio_chip belongs to. ``struct gpio_chip *gc`` the GPIO chip to register ``void *data`` driver-private data associated with this chip ``struct lock_class_key *lock_key`` lockdep class for IRQ lock ``struct lock_class_key *request_key`` lockdep class for IRQ request **Context** potentially before irqs will work **Description** The gpio chip automatically be released when the device is unbound. **Return** A negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMRhjubj)}(hhh](j)}(hH``struct device *dev`` pointer to the device that gpio_chip belongs to. h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMOhjubj:)}(hhh]h)}(h0pointer to the device that gpio_chip belongs to.h]h0pointer to the device that gpio_chip belongs to.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMOhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMOhjubj)}(h3``struct gpio_chip *gc`` the GPIO chip to register h](j)}(h``struct gpio_chip *gc``h]j$)}(hjh]hstruct gpio_chip *gc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMPhjubj:)}(hhh]h)}(hthe GPIO chip to registerh]hthe GPIO chip to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMPhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj hMPhjubj)}(h=``void *data`` driver-private data associated with this chip h](j)}(h``void *data``h]j$)}(hj1h]h void *data}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1j#hj/ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMQhj+ubj:)}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjFhMQhjGubah}(h]h ]h"]h$]h&]uh1j9hj+ubeh}(h]h ]h"]h$]h&]uh1jhjFhMQhjubj)}(h?``struct lock_class_key *lock_key`` lockdep class for IRQ lock h](j)}(h#``struct lock_class_key *lock_key``h]j$)}(hjjh]hstruct lock_class_key *lock_key}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjhubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMRhjdubj:)}(hhh]h)}(hlockdep class for IRQ lockh]hlockdep class for IRQ lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j9hjdubeh}(h]h ]h"]h$]h&]uh1jhjhMRhjubj)}(hE``struct lock_class_key *request_key`` lockdep class for IRQ request h](j)}(h&``struct lock_class_key *request_key``h]j$)}(hjh]h"struct lock_class_key *request_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMShjubj:)}(hhh]h)}(hlockdep class for IRQ requesth]hlockdep class for IRQ request}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMShjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMWhjubh)}(hCThe gpio chip automatically be released when the device is unbound.h]hCThe gpio chip automatically be released when the device is unbound.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMVhjubh)}(h **Return**h]j)}(hj,h]hReturn}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj*ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMXhjubh)}(hA negative errno if the chip can't be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.h]hA negative errno if the chip can’t be registered, such as because the gc->base is invalid or already associated with a different chip. Otherwise it returns zero as a success code.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:44: ./drivers/gpio/gpiolib-devres.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj)hhhNhNubeh}(h]device-managed-apiah ]h"]device-managed apiah$]h&]uh1hhhhhhhhK*ubh)}(hhh](h)}(h sysfs helpersh]h sysfs helpers}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hhhhhK0ubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_export (C function)c.gpiod_exporthNtauh1j#hj`hhhNhNubj5)}(hhh](j:)}(hDint gpiod_export (struct gpio_desc *desc, bool direction_may_change)h]j@)}(hCint gpiod_export(struct gpio_desc *desc, bool direction_may_change)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(h gpiod_exporth]jo)}(h gpiod_exporth]h gpiod_export}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h3(struct gpio_desc *desc, bool direction_may_change)h](j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j)}jjsbc.gpiod_exportasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hj hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hbool direction_may_changeh](j)}(hjT,h]hbool}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjX)}(h h]h }(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhj5ubjo)}(hdirection_may_changeh]hdirection_may_change}(hjThhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhj5ubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]j}ah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(hexport a GPIO through sysfsh]hexport a GPIO through sysfs}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhj{hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj`hNhNubj)}(hX**Parameters** ``struct gpio_desc *desc`` GPIO to make available, already requested ``bool direction_may_change`` true if userspace may change GPIO direction **Context** arch_initcall or later **Description** When drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can't) and the caller allows it, userspace will see "direction" sysfs attribute which may be used to change the gpio's direction. A "value" attribute will always be provided. **Return** 0 on success, or negative errno on failure.MOh](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubj)}(hhh](j)}(hE``struct gpio_desc *desc`` GPIO to make available, already requested h](j)}(h``struct gpio_desc *desc``h]j$)}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubj:)}(hhh]h)}(h)GPIO to make available, already requestedh]h)GPIO to make available, already requested}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hJ``bool direction_may_change`` true if userspace may change GPIO direction h](j)}(h``bool direction_may_change``h]j$)}(hjh]hbool direction_may_change}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubj:)}(hhh]h)}(h+true if userspace may change GPIO directionh]h+true if userspace may change GPIO direction}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hj3h]hContext}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(harch_initcall or laterh]harch_initcall or later}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(h**Description**h]j)}(hjZh]h Description}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(hXWhen drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can't) and the caller allows it, userspace will see "direction" sysfs attribute which may be used to change the gpio's direction. A "value" attribute will always be provided.h]hXWhen drivers want to make a GPIO accessible to userspace after they have requested it -- perhaps while debugging, or as part of their public interface -- they may use this routine. If the GPIO can change direction (some can’t) and the caller allows it, userspace will see “direction” sysfs attribute which may be used to change the gpio’s direction. A “value” attribute will always be provided.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_export_link (C function)c.gpiod_export_linkhNtauh1j#hj`hhhNhNubj5)}(hhh](j:)}(hTint gpiod_export_link (struct device *dev, const char *name, struct gpio_desc *desc)h]j@)}(hSint gpiod_export_link(struct device *dev, const char *name, struct gpio_desc *desc)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMuubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMuubji)}(hgpiod_export_linkh]jo)}(hgpiod_export_linkh]hgpiod_export_link}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMuubj)}(h>(struct device *dev, const char *name, struct gpio_desc *desc)h](j)}(hstruct device *devh](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(hdeviceh]hdevice}(hj!hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj#modnameN classnameNjj)}j]j)}jjsbc.gpiod_export_linkasbuh1hhjubjX)}(h h]h }(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjOhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdevh]hdev}(hj\hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hconst char *nameh](jF)}(hjh]hconst}(hjuhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjqubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjqubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjqubjo)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjqubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubj)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetjmodnameN classnameNjj)}j]j=c.gpiod_export_linkasbuh1hhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hj)hhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubeh}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMuubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMuubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMuhjhhubj)}(hhh]h)}(h,create a sysfs link to an exported GPIO nodeh]h,create a sysfs link to an exported GPIO node}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMuhjPhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjkjjkjjjuh1j4hhhj`hNhNubj)}(hXz**Parameters** ``struct device *dev`` device under which to create symlink ``const char *name`` name of the symlink ``struct gpio_desc *desc`` GPIO to create symlink to, already exported **Description** Set up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjuh]h Parameters}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjsubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMyhjoubj)}(hhh](j)}(h<``struct device *dev`` device under which to create symlink h](j)}(h``struct device *dev``h]j$)}(hjh]hstruct device *dev}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMvhjubj:)}(hhh]h)}(h$device under which to create symlinkh]h$device under which to create symlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMvhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMvhjubj)}(h)``const char *name`` name of the symlink h](j)}(h``const char *name``h]j$)}(hjh]hconst char *name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMwhjubj:)}(hhh]h)}(hname of the symlinkh]hname of the symlink}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMwhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMwhjubj)}(hG``struct gpio_desc *desc`` GPIO to create symlink to, already exported h](j)}(h``struct gpio_desc *desc``h]j$)}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMxhjubj:)}(hhh]h)}(h+GPIO to create symlink to, already exportedh]h+GPIO to create symlink to, already exported}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMxhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMxhjubeh}(h]h ]h"]h$]h&]uh1jhjoubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMzhjoubh)}(hkSet up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking.h]hkSet up a symlink from /sys/.../dev/name to /sys/class/gpio/gpioN node. Caller is responsible for unlinking.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMyhjoubh)}(h **Return**h]j)}(hjhh]hReturn}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chM|hjoubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chM}hjoubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`hhhNhNubj$)}(hhh]h}(h]h ]h"]h$]h&]entries](j0gpiod_unexport (C function)c.gpiod_unexporthNtauh1j#hj`hhhNhNubj5)}(hhh](j:)}(h,void gpiod_unexport (struct gpio_desc *desc)h]j@)}(h+void gpiod_unexport(struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjhhhjhMubji)}(hgpiod_unexporth]jo)}(hgpiod_unexporth]hgpiod_unexport}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ](jjeh"]h$]h&]jjuh1jhhjhhhjhMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](jF)}(hjIh]hstruct}(hjhhhNhNubah}(h]h ]jRah"]h$]h&]uh1jEhjubjX)}(h h]h }(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubh)}(hhh]jo)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubah}(h]h ]h"]h$]h&] refdomainjreftypej reftargetj modnameN classnameNjj)}j]j)}jjsbc.gpiod_unexportasbuh1hhjubjX)}(h h]h }(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jWhjubj)}(hjh]h*}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjo)}(hdesch]hdesc}(hjChhhNhNubah}(h]h ]jzah"]h$]h&]uh1jnhjubeh}(h]h ]h"]h$]h&]noemphjjuh1jhjubah}(h]h ]h"]h$]h&]jjuh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jjjuh1j?jjhjhhhjhMubah}(h]jah ](jjeh"]h$]h&]jj)jhuh1j9hjhMhjhhubj)}(hhh]h)}(h reverse effect of gpiod_export()h]h reverse effect of gpiod_export()}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1j4hhhj`hNhNubj)}(hy**Parameters** ``struct gpio_desc *desc`` GPIO to make unavailable **Description** This is implicit on gpiod_free().h](h)}(h**Parameters**h]j)}(hjh]h Parameters}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubj)}(hhh]j)}(h4``struct gpio_desc *desc`` GPIO to make unavailable h](j)}(h``struct gpio_desc *desc``h]j$)}(hjh]hstruct gpio_desc *desc}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j#hjubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubj:)}(hhh]h)}(hGPIO to make unavailableh]hGPIO to make unavailable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j9hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(h!This is implicit on gpiod_free().h]h!This is implicit on gpiod_free().}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:50: ./drivers/gpio/gpiolib-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhj`hhhNhNubeh}(h] sysfs-helpersah ]h"] sysfs helpersah$]h&]uh1hhhhhhhhK0ubeh}(h]!general-purpose-input-output-gpioah ]h"]#general purpose input/output (gpio)ah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjHerror_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourcehʌ _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j"jjjj j j&j#j]jZjju nametypes}(j"jj j&j]juh}(jhjjj2j;jY j^ j2j7j jjbjgj8j=jjjbjgjjjjjl!jq!j#j #j%j%j 'j'j(j(j3*j8*jE,jJ,j.j.jM0jR0jT2jY2j3j3jc5jh5j8j8j:j:jg<jl<j5>j:>j?j?jsAjxAjCjCjEjEjGjGjIJjNJjMjMjJRjORjSjSjUjUj4Zj9Zj[j[j]]jb]js_jx_jajajcjcjejejgjgjijjjkjkjljljnjnjzpjpjtj tjwjwjyjyj{j{jnjsjjjjjjjqjvj jj?jDjJjOj jjБjՑj^jcjjjjj6j;jĠjɠjRjWjjjj jQjVjhjmjhjmjjj.j3jͺjҺjjjj jjj jjjjjj jjjj#jjZj)jFjKjjjjjijnjOjTjjjKjPjjjjjjjj$jj`j}jjjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]transform_messages] transformerN include_log] decorationNhhub.