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]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/bt8xxgpioe includefiles](hhhhhhhhemaxdepthKcaptionNglobhidden includehiddennumberedK titlesonly rawentries]uh1hhhhKhhubah}(h]h ]toctree-wrapperah"]h$]h&]uh1hhhhhhhhNubh)}(hhh](h)}(hCoreh]hCore}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhhhKubhindex)}(hhh]h}(h]h ]h"]h$]h&]entries](singlegpio_irq_chip (C struct)c.gpio_irq_chiphNtauh1j hhhhhNhNubhdesc)}(hhh](hdesc_signature)}(h gpio_irq_chiph]hdesc_signature_line)}(hstruct gpio_irq_chiph](hdesc_sig_keyword)}(hstructh]hstruct}(hj1hhhNhNubah}(h]h ]kah"]h$]h&]uh1j/hj+hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKubhdesc_sig_space)}(h h]h }(hjChhhNhNubah}(h]h ]wah"]h$]h&]uh1jAhj+hhhj@hKubh desc_name)}(h gpio_irq_chiph]h desc_sig_name)}(hj'h]h gpio_irq_chip}(hjZhhhNhNubah}(h]h ]nah"]h$]h&]uh1jXhjTubah}(h]h ](sig-namedescnameeh"]h$]h&] xml:spacepreserveuh1jRhj+hhhj@hKubeh}(h]h ]h"]h$]h&]jpjq add_permalinkuh1j)sphinx_line_type declaratorhj%hhhj@hKubah}(h]jah ](sig sig-objecteh"]h$]h&] is_multiline _toc_parts) _toc_namehuh1j#hj@hKhj hhubh 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:22: ./include/linux/gpio/driver.hhK1hjhhubah}(h]h ]h"]h$]h&]uh1jhj hhhj@hKubeh}(h]h ](cstructeh"]h$]h&]domainjobjtypejdesctypejnoindex noindexentrynocontentsentryuh1jhhhhhNhNubh 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:22: ./include/linux/gpio/driver.hhK5hjubh 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&]jpjquh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhK7hjubh)}(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:22: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhK6hjubh 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&]uh1hhj"hK6hj%ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj"hK6hjubj)}(hq``domain`` Interrupt translation domain; responsible for mapping between GPIO hwirq number and Linux IRQ number. h](j)}(h ``domain``h]j)}(hjHh]hdomain}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjFubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhK>hjBubj$)}(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.}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhK=hj^ubah}(h]h ]h"]h$]h&]uh1j#hjBubeh}(h]h ]h"]h$]h&]uh1jhj]hK>hjubj)}(ho``fwnode`` Firmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support. h](j)}(h ``fwnode``h]j)}(hjh]hfwnode}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKGhj|ubj$)}(hhh]h)}(hcFirmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support.h]hcFirmware node corresponding to this gpiochip/irqchip, necessary for hierarchical irqdomain support.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKFhjubah}(h]h ]h"]h$]h&]uh1j#hj|ubeh}(h]h ]h"]h$]h&]uh1jhjhKGhjubj)}(h``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. h](j)}(h``parent_domain``h]j)}(hjh]h parent_domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKQhjubj$)}(hhh]h)}(hIf 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.h]hIf 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKNhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKQhjubj)}(hX``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. h](j)}(h``child_to_parent_hwirq``h]j)}(hjh]hchild_to_parent_hwirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKdhjubj$)}(hhh](h)}(hXThis 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.h]hXThis 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKXhj ubh)}(hIf 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.h](hxIf some ranges of hardware IRQs do not have a corresponding parent HWIRQ, return -EINVAL, but also make sure to fill in }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh and }(hjhhhNhNubj)}(h**need_valid_mask**h]hneed_valid_mask}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh6 to make these GPIO lines unavailable for translation.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKahj ubeh}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj hKdhjubj)}(hX=``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. h](j)}(h``populate_parent_alloc_arg``h]j)}(hjch]hpopulate_parent_alloc_arg}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKshj]ubj$)}(hhh]h)}(hXThis 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.h](hThis optional callback allocates and populates the specific struct for the parent’s IRQ domain. If this is not specified, then }(hj|hhhNhNubh)}(h1:c:type:`gpiochip_populate_parent_fwspec_twocell`h]j)}(hjh]h'gpiochip_populate_parent_fwspec_twocell}(hjhhhNhNubah}(h]h ](xrefjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarn c:parent_keysphinx.domains.c LookupKey)}data]sb reftarget'gpiochip_populate_parent_fwspec_twocelluh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKohj|ubh) will be used. A four-cell variant named }(hj|hhhNhNubh)}(h2:c:type:`gpiochip_populate_parent_fwspec_fourcell`h]j)}(hjh]h(gpiochip_populate_parent_fwspec_fourcell}(hjhhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjj(gpiochip_populate_parent_fwspec_fourcelluh1hhjhKohj|ubh is also available.}(hj|hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhKohjyubah}(h]h ]h"]h$]h&]uh1j#hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhKshjubj)}(hX``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. h](j)}(h``child_offset_to_irq``h]j)}(hjh]hchild_offset_to_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:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hThis 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.h]hThis 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhK}hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h``child_irq_domain_ops``h]j)}(hj'h]hchild_irq_domain_ops}(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:22: ./include/linux/gpio/driver.hhKhj!ubj$)}(hhh]h)}(hThe 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.h]hThe 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.}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj=ubah}(h]h ]h"]h$]h&]uh1j#hj!ubeh}(h]h ]h"]h$]h&]uh1jhj<hKhjubj)}(hr``handler`` The IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver. h](j)}(h ``handler``h]j)}(hjah]hhandler}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj[ubj$)}(hhh]h)}(heThe IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver.h]heThe IRQ handler to use (often a predefined IRQ core function) for GPIO IRQs, provided by GPIO driver.}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjwubah}(h]h ]h"]h$]h&]uh1j#hj[ubeh}(h]h ]h"]h$]h&]uh1jhjvhKhjubj)}(hq``default_type`` Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver. h](j)}(h``default_type``h]j)}(hjh]h default_type}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(h_Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver.h]h_Default IRQ triggering type applied during GPIO driver initialization, provided by GPIO driver.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h;``lock_key`` Per GPIO IRQ chip lockdep class for IRQ lock. h](j)}(h ``lock_key``h]j)}(hjh]hlock_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(h-Per GPIO IRQ chip lockdep class for IRQ lock.h]h-Per GPIO IRQ chip lockdep class for IRQ lock.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hA``request_key`` Per GPIO IRQ chip lockdep class for IRQ request. h](j)}(h``request_key``h]j)}(hjh]h request_key}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(h0Per GPIO IRQ chip lockdep class for IRQ request.h]h0Per GPIO IRQ chip lockdep class for IRQ request.}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubj)}(h``parent_handler`` The interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded. h](j)}(h``parent_handler``h]j)}(hjGh]hparent_handler}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjAubj$)}(hhh]h)}(hThe interrupt handler for the GPIO chip's parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded.h]hThe interrupt handler for the GPIO chip’s parent interrupts, may be NULL if the parent interrupts are nested rather than cascaded.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj]ubah}(h]h ]h"]h$]h&]uh1j#hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjubj)}(h``{unnamed_union}`` anonymous h](j)}(h``{unnamed_union}``h]j)}(hjh]h{unnamed_union}}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj{ubj$)}(hhh]h)}(h anonymoush]h anonymous}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hj{ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h``parent_handler_data``h]j)}(hjh]hparent_handler_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hIf **per_parent_data** is false, **parent_handler_data** is a single pointer used as the data associated with every parent interrupt.h](hIf }(hjhhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh is false, }(hjhhhNhNubj)}(h**parent_handler_data**h]hparent_handler_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhM is a single pointer used as the data associated with every parent interrupt.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h``parent_handler_data_array``h]j)}(hjh]hparent_handler_data_array}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hIf **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.h](hIf }(hj1hhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh is true, }(hj1hhhNhNubj)}(h**parent_handler_data_array**h]hparent_handler_data_array}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh is an array of }(hj1hhhNhNubj)}(h**num_parents**h]h num_parents}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh[ pointers, and is used to associate different data for each parent. This cannot be NULL if }(hj1hhhNhNubj)}(h**per_parent_data**h]hper_parent_data}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh is true.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj.ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj-hKhjubj)}(h@``num_parents`` The number of interrupt parents of a GPIO chip. h](j)}(h``num_parents``h]j)}(hjh]h num_parents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(h/The number of interrupt parents of a GPIO chip.h]h/The number of interrupt parents of a GPIO chip.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h ``parents``h]j)}(hjh]hparents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hA 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.h]hA 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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(hB``map`` A list of interrupt parents for each line of a GPIO chip. h](j)}(h``map``h]j)}(hj h]hmap}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(h9A list of interrupt parents for each line of a GPIO chip.h]h9A list of interrupt parents for each line of a GPIO chip.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj"hKhj#ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj"hKhjubj)}(hE``threaded`` True if set the interrupt handling uses nested threads. h](j)}(h ``threaded``h]j)}(hjFh]hthreaded}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjDubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhj@ubj$)}(hhh]h)}(h7True if set the interrupt handling uses nested threads.h]h7True if set the interrupt handling uses nested threads.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj[hKhj\ubah}(h]h ]h"]h$]h&]uh1j#hj@ubeh}(h]h ]h"]h$]h&]uh1jhj[hKhjubj)}(hy``per_parent_data`` True if parent_handler_data_array describes a **num_parents** sized array to be used as parent data. h](j)}(h``per_parent_data``h]j)}(hjh]hper_parent_data}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj}ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjyubj$)}(hhh]h)}(hdTrue if parent_handler_data_array describes a **num_parents** sized array to be used as parent data.h](h.True if parent_handler_data_array describes a }(hjhhhNhNubj)}(h**num_parents**h]h num_parents}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh' sized array to be used as parent data.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjyubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h``initialized``h]j)}(hjh]h initialized}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hFlag to track GPIO chip irq member's initialization. This flag will make sure GPIO chip irq members are not used before they are initialized.h]hFlag to track GPIO chip irq member’s initialization. This flag will make sure GPIO chip irq members are not used before they are initialized.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h"``domain_is_allocated_externally``h]j)}(hjh]hdomain_is_allocated_externally}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubj$)}(hhh]h)}(hpTrue it the irq_domain was allocated outside of gpiolib, in which case gpiolib won't free the irq_domain itself.h]hrTrue it the irq_domain was allocated outside of gpiolib, in which case gpiolib won’t free the irq_domain itself.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(h``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. h](j)}(h ``init_hw``h]j)}(hj?h]hinit_hw}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj=ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj9ubj$)}(hhh]h)}(hoptional 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.h]hoptional 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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjUubah}(h]h ]h"]h$]h&]uh1j#hj9ubeh}(h]h ]h"]h$]h&]uh1jhjThMhjubj)}(hX``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. h](j)}(h``init_valid_mask``h]j)}(hjyh]hinit_valid_mask}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjsubj$)}(hhh]h)}(hX}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.h](hoptional routine to initialize }(hjhhhNhNubj)}(h**valid_mask**h]h valid_mask}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubhX\, 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.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM hjubah}(h]h ]h"]h$]h&]uh1j#hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hq``valid_mask`` If not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip. h](j)}(h``valid_mask``h]j)}(hjh]h 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:22: ./include/linux/gpio/driver.hhMhjubj$)}(hhh]h)}(haIf not ``NULL``, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip.h](hIf not }(hjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubhR, holds bitmask of GPIOs which are valid to be included in IRQ domain of the chip.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``first`` Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization. h](j)}(h ``first``h]j)}(hj h]hfirst}(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:22: ./include/linux/gpio/driver.hhM#hj ubj$)}(hhh]h)}(h|Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization.h]h|Required for static IRQ allocation. If set, irq_domain_create_simple() will allocate and map all IRQs during initialization.}(hj* hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM!hj' ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj& hM#hjubj)}(h6``irq_enable`` Store old irq_chip irq_enable callback h](j)}(h``irq_enable``h]j)}(hjK h]h irq_enable}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjI ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM*hjE ubj$)}(hhh]h)}(h&Store old irq_chip irq_enable callbackh]h&Store old irq_chip irq_enable callback}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj` hM*hja ubah}(h]h ]h"]h$]h&]uh1j#hjE ubeh}(h]h ]h"]h$]h&]uh1jhj` hM*hjubj)}(h8``irq_disable`` Store old irq_chip irq_disable callback h](j)}(h``irq_disable``h]j)}(hj h]h irq_disable}(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:22: ./include/linux/gpio/driver.hhM1hj~ ubj$)}(hhh]h)}(h'Store old irq_chip irq_disable callbackh]h'Store old irq_chip irq_disable callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM1hj ubah}(h]h ]h"]h$]h&]uh1j#hj~ ubeh}(h]h ]h"]h$]h&]uh1jhj hM1hjubj)}(h6``irq_unmask`` Store old irq_chip irq_unmask callback h](j)}(h``irq_unmask``h]j)}(hj h]h irq_unmask}(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:22: ./include/linux/gpio/driver.hhM7hj ubj$)}(hhh]h)}(h&Store old irq_chip irq_unmask callbackh]h&Store old irq_chip irq_unmask callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hM7hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM7hjubj)}(h1``irq_mask`` Store old irq_chip irq_mask callbackh](j)}(h ``irq_mask``h]j)}(hj h]hirq_mask}(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:22: ./include/linux/gpio/driver.hhM=hj ubj$)}(hhh]h)}(h$Store old irq_chip irq_mask callbackh]h$Store old irq_chip irq_mask callback}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM>hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM=hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_chip (C struct) c.gpio_chiphNtauh1j hhhhhNhNubj)}(hhh](j$)}(h gpio_chiph]j*)}(hstruct gpio_chiph](j0)}(hj3h]hstruct}(hjP hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjL hhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMDubjB)}(h h]h }(hj^ hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjL hhhj] hMDubjS)}(h gpio_chiph]jY)}(hjJ h]h gpio_chip}(hjp hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjl ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjL hhhj] hMDubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjH hhhj] hMDubah}(h]jC ah ](j~jeh"]h$]h&]jj)jhuh1j#hj] hMDhjE hhubj)}(hhh]h)}(habstract a GPIO controllerh]habstract a GPIO controller}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMEhj hhubah}(h]h ]h"]h$]h&]uh1jhjE hhhj] hMDubeh}(h]h ](jstructeh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(hXP**Definition**:: struct 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; }; **Members** ``label`` a functional name for the GPIO device, such as a part number or the name of the SoC IP-block implementing it. ``gpiodev`` the internal state holder, opaque struct ``parent`` optional parent device providing the GPIOs ``fwnode`` optional fwnode providing this controller's properties ``owner`` helps prevent removal of modules exporting active GPIOs ``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 ``free`` optional hook for chip-specific deactivation, such as disabling module power and clock; may sleep ``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. ``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. ``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. ``get`` returns value for signal "offset", 0=low, 1=high, or negative error ``get_multiple`` reads values for multiple signals defined by "mask" and stores them in "bits", returns 0 on success or negative error ``set`` assigns output value for signal "offset", returns 0 on success or negative error value ``set_multiple`` assigns output values for multiple signals defined by "mask", returns 0 on success or negative error value ``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. ``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep ``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). ``init_valid_mask`` optional routine to initialize **valid_mask**, to be used if not all GPIOs are valid. ``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. ``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. ``dis_hw_timestamp`` Dependent on GPIO chip, an optional routine to disable hardware timestamp. ``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. ``ngpio`` the number of GPIOs handled by this controller; the last GPIO handled is (base + ngpio - 1). ``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. ``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. ``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. ``irq`` Integrates interrupt chip functionality with the GPIO chip. Can be used to handle IRQs for most practical cases. ``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>; ``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:22: ./include/linux/gpio/driver.hhMIhj ubj)}(hX struct 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]hX struct 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&]jpjquh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMKhj 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:22: ./include/linux/gpio/driver.hhMphj 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:22: ./include/linux/gpio/driver.hhMHhj 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:22: ./include/linux/gpio/driver.hhMGhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMHhj ubj)}(h5``gpiodev`` the internal state holder, opaque struct h](j)}(h ``gpiodev``h]j)}(hj9 h]hgpiodev}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj7 ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMIhj3 ubj$)}(hhh]h)}(h(the internal state holder, opaque structh]h(the internal state holder, opaque struct}(hjR hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjN hMIhjO ubah}(h]h ]h"]h$]h&]uh1j#hj3 ubeh}(h]h ]h"]h$]h&]uh1jhjN hMIhj ubj)}(h6``parent`` optional parent device providing the GPIOs h](j)}(h ``parent``h]j)}(hjr h]hparent}(hjt hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjp ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMJhjl 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 hMJhj ubah}(h]h ]h"]h$]h&]uh1j#hjl ubeh}(h]h ]h"]h$]h&]uh1jhj hMJhj 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:22: ./include/linux/gpio/driver.hhMKhj 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 hMKhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMKhj 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:22: ./include/linux/gpio/driver.hhMLhj 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 hMLhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMLhj 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)}(hj h]hrequest}(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:22: ./include/linux/gpio/driver.hhMOhj 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}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMMhj3 ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj2 hMOhj ubj)}(hk``free`` optional hook for chip-specific deactivation, such as disabling module power and clock; may sleep h](j)}(h``free``h]j)}(hjW h]hfree}(hjY hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjU ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMQhjQ 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}(hjp hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMPhjm ubah}(h]h ]h"]h$]h&]uh1j#hjQ ubeh}(h]h ]h"]h$]h&]uh1jhjl hMQhj 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:22: ./include/linux/gpio/driver.hhMUhj 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:22: ./include/linux/gpio/driver.hhMRhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMUhj 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:22: ./include/linux/gpio/driver.hhMXhj 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:22: ./include/linux/gpio/driver.hhMVhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hMXhj 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:22: ./include/linux/gpio/driver.hhM[hj 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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMYhj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM[hj ubj)}(hL``get`` returns value for signal "offset", 0=low, 1=high, or negative error h](j)}(h``get``h]j)}(hj? h]hget}(hjA 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:22: ./include/linux/gpio/driver.hhM\hj9 ubj$)}(hhh]h)}(hCreturns value for signal "offset", 0=low, 1=high, or negative errorh]hGreturns value for signal “offset”, 0=low, 1=high, or negative error}(hjX hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjT hM\hjU ubah}(h]h ]h"]h$]h&]uh1j#hj9 ubeh}(h]h ]h"]h$]h&]uh1jhjT 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)}(hjx h]h get_multiple}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjv ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM^hjr 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:22: ./include/linux/gpio/driver.hhM]hj ubah}(h]h ]h"]h$]h&]uh1j#hjr ubeh}(h]h ]h"]h$]h&]uh1jhj hM^hj ubj)}(h_``set`` assigns output value for signal "offset", returns 0 on success or negative error value 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:22: ./include/linux/gpio/driver.hhM`hj ubj$)}(hhh]h)}(hVassigns output value for signal "offset", returns 0 on success or negative error valueh]hZassigns output value for signal “offset”, 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:22: ./include/linux/gpio/driver.hhM_hj ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj hM`hj 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)}(hj h]h set_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:22: ./include/linux/gpio/driver.hhMbhj ubj$)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMahjubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhjhMbhj 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)}(hj&h]h set_config}(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:22: ./include/linux/gpio/driver.hhMehj ubj$)}(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.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMchj<ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hMehj ubj)}(he``to_irq`` optional hook supporting non-static gpiod_to_irq() mappings; implementation may not sleep h](j)}(h ``to_irq``h]j)}(hj`h]hto_irq}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj^ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMghjZubj$)}(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}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMfhjvubah}(h]h ]h"]h$]h&]uh1j#hjZubeh}(h]h ]h"]h$]h&]uh1jhjuhMghj 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:22: ./include/linux/gpio/driver.hhMjhjubj$)}(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:22: ./include/linux/gpio/driver.hhMhhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMjhj 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:22: ./include/linux/gpio/driver.hhMlhjubj$)}(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:22: ./include/linux/gpio/driver.hhMkhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMlhj 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)}(hj h]hadd_pin_ranges}(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:22: ./include/linux/gpio/driver.hhMohjubj$)}(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.}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMmhj6ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj5hMohj ubj)}(h^``en_hw_timestamp`` Dependent on GPIO chip, an optional routine to enable hardware timestamp. h](j)}(h``en_hw_timestamp``h]j)}(hjZh]hen_hw_timestamp}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjXubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMqhjTubj$)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMphjpubah}(h]h ]h"]h$]h&]uh1j#hjTubeh}(h]h ]h"]h$]h&]uh1jhjohMqhj 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:22: ./include/linux/gpio/driver.hhMshjubj$)}(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:22: ./include/linux/gpio/driver.hhMrhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMshj 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:22: ./include/linux/gpio/driver.hhMyhjubj$)}(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:22: ./include/linux/gpio/driver.hhMthjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMyhj 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)}(hjh]hngpio}(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:22: ./include/linux/gpio/driver.hhM{hjubj$)}(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).}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMzhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM{hj 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)}(hjBh]hoffset}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM~hj<ubj$)}(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.}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM|hjXubah}(h]h ]h"]h$]h&]uh1j#hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM~hj 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)}(hj|h]hnames}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjzubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjvubj$)}(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:22: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j#hjvubeh}(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:22: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(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)}(hjh]hirq}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubj$)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj 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)}(hj<h]hof_gpio_n_cells}(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:22: ./include/linux/gpio/driver.hhMhj6ubj$)}(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:}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjRubh)}(h&gpios = <:c:type:`gpio` offset flags>;h](h gpios = <}(hjdhhhNhNubh)}(h:c:type:`gpio`h]j)}(hjnh]hgpio}(hjphhhNhNubah}(h]h ](jjc-typeeh"]h$]h&]uh1j hjlubah}(h]h ]h"]h$]h&]refdoch׌ refdomainjreftypetype refexplicitrefwarnjjjgpiouh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjdubh offset flags>;}(hjdhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjRubh)}(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:22: ./include/linux/gpio/driver.hhMhjRubh)}(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:22: ./include/linux/gpio/driver.hhMhjubh instance offset flags>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjhMhjRubh)}(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:22: ./include/linux/gpio/driver.hhMhjRubh)}(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 refexplicitrefwarnjjjgpiouh1hhjQhMhjubh offset>;}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjQhMhjRubeh}(h]h ]h"]h$]h&]uh1j#hj6ubeh}(h]h ]h"]h$]h&]uh1jhjQhMhj 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)}(hj)h]hof_node_instance_match}(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:22: ./include/linux/gpio/driver.hhMhj#ubj$)}(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).}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj?ubah}(h]h ]h"]h$]h&]uh1j#hj#ubeh}(h]h ]h"]h$]h&]uh1jhj>hMhj 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)}(hjch]hof_xlate}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j hjaubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj]ubj$)}(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.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjxhMhjyubah}(h]h ]h"]h$]h&]uh1j#hj]ubeh}(h]h ]h"]h$]h&]uh1jhjxhMhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubh)}(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:22: ./include/linux/gpio/driver.hhMhhhhubh)}(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:22: ./include/linux/gpio/driver.hhMhhhhubh)}(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}(hjhhhNhNubah}(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:22: ./include/linux/gpio/driver.hhMhhhhubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"for_each_hwgpio_in_range (C macro)c.for_each_hwgpio_in_rangehNtauh1j hhhhhNhNubj)}(hhh](j$)}(hfor_each_hwgpio_in_rangeh]j*)}(hfor_each_hwgpio_in_rangeh]jS)}(hfor_each_hwgpio_in_rangeh]jY)}(hjh]hfor_each_hwgpio_in_range}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMubah}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhj-hMubah}(h]j ah ](j~jeh"]h$]h&]jj)jhuh1j#hj-hMhj hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj hhhj-hMubeh}(h]h ](jmacroeh"]h$]h&]jjjjFjjFjjjuh1jhhhhhNhNubh)}(h>``for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)``h]j)}(hjLh]h:for_each_hwgpio_in_range (_chip, _i, _base, _size, _label)}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhhhhubh 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}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjdubah}(h]h ]h"]h$]h&]uh1jbhjvhMhhhhubj)}(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:22: ./include/linux/gpio/driver.hhMhj}ubj)}(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:22: ./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&]uh1j#hjubeh}(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:22: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h$``_base`` First GPIO in the ranger. h](j)}(h ``_base``h]j)}(hjh]h_base}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubj$)}(hhh]h)}(hFirst GPIO in the ranger.h]hFirst GPIO in the ranger.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hMhj*ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj)hMhjubj)}(h;``_size`` Amount of GPIOs to check starting from **base**. h](j)}(h ``_size``h]j)}(hjMh]h_size}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjKubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjGubj$)}(hhh]h)}(h0Amount of GPIOs to check starting from **base**.h](h'Amount of GPIOs to check starting from }(hjfhhhNhNubj)}(h**base**h]hbase}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjfubh.}(hjfhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhjbhMhjcubah}(h]h ]h"]h$]h&]uh1j#hjGubeh}(h]h ]h"]h$]h&]uh1jhjbhMhjubj)}(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:22: ./include/linux/gpio/driver.hhMhjubj$)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhj}ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jfor_each_hwgpio (C macro)c.for_each_hwgpiohNtauh1j hhhhhNhNubj)}(hhh](j$)}(hfor_each_hwgpioh]j*)}(hfor_each_hwgpioh]jS)}(hfor_each_hwgpioh]jY)}(hjh]hfor_each_hwgpio}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM'ubah}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhM'ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM'hjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhjhM'ubeh}(h]h ](jmacroeh"]h$]h&]jjjj!jj!jjjuh1jhhhhhNhNubh)}(h'``for_each_hwgpio (_chip, _i, _label)``h]j)}(hj'h]h#for_each_hwgpio (_chip, _i, _label)}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj%ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM)hhhhubjc)}(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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM'hj=ubah}(h]h ]h"]h$]h&]uh1jbhjOhM'hhhhubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM+hjVubj)}(hhh](j)}(h ``_chip`` Chip to iterate over. h](j)}(h ``_chip``h]j)}(hj{h]h_chip}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM(hjuubj$)}(hhh]h)}(hChip to iterate over.h]hChip to iterate over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM(hjubah}(h]h ]h"]h$]h&]uh1j#hjuubeh}(h]h ]h"]h$]h&]uh1jhjhM(hjrubj)}(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:22: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjrubj)}(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:22: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM*hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*for_each_requested_gpio_in_range (C macro)"c.for_each_requested_gpio_in_rangehNtauh1j hhhhhNhNubj)}(hhh](j$)}(h for_each_requested_gpio_in_rangeh]j*)}(h for_each_requested_gpio_in_rangeh]jS)}(h for_each_requested_gpio_in_rangeh]jY)}(hj@h]h for_each_requested_gpio_in_range}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjFubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjBhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM1ubah}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj>hhhj]hM1ubah}(h]j9ah ](j~jeh"]h$]h&]jj)jhuh1j#hj]hM1hj;hhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhj;hhhj]hM1ubeh}(h]h ](jmacroeh"]h$]h&]jjjjvjjvjjjuh1jhhhhhNhNubh)}(hF``for_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)``h]j)}(hj|h]hBfor_each_requested_gpio_in_range (_chip, _i, _base, _size, _label)}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjzubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM3hhhhubjc)}(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:22: ./include/linux/gpio/driver.hhM1hjubah}(h]h ]h"]h$]h&]uh1jbhjhM1hhhhubj)}(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:22: ./include/linux/gpio/driver.hhM5hjubj)}(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:22: ./include/linux/gpio/driver.hhM2hjubj$)}(hhh]h)}(hthe chip to queryh]hthe chip to query}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjubj)}(h``_i`` loop variable h](j)}(h``_i``h]j)}(hj h]h_i}(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:22: ./include/linux/gpio/driver.hhM3hjubj$)}(hhh]h)}(h loop variableh]h loop variable}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM3hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM3hjubj)}(h"``_base`` first GPIO in the range h](j)}(h ``_base``h]j)}(hjBh]h_base}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj@ubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM4hj<ubj$)}(hhh]h)}(hfirst GPIO in the rangeh]hfirst GPIO in the range}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM4hjXubah}(h]h ]h"]h$]h&]uh1j#hj<ubeh}(h]h ]h"]h$]h&]uh1jhjWhM4hjubj)}(h:``_size`` amount of GPIOs to check starting from **base** h](j)}(h ``_size``h]j)}(hj{h]h_size}(hj}hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjyubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM5hjuubj$)}(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&]uh1hhjhM5hjubah}(h]h ]h"]h$]h&]uh1j#hjuubeh}(h]h ]h"]h$]h&]uh1jhjhM5hjubj)}(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:22: ./include/linux/gpio/driver.hhM7hjubj$)}(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:22: ./include/linux/gpio/driver.hhM6hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM7hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_add_data (C macro)c.gpiochip_add_datahNtauh1j hhhhhNhNubj)}(hhh](j$)}(hgpiochip_add_datah]j*)}(hgpiochip_add_datah]jS)}(hgpiochip_add_datah]jY)}(hjh]hgpiochip_add_data}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMFubah}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhj3hMFubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hj3hMFhjhhubj)}(hhh]h}(h]h ]h"]h$]h&]uh1jhjhhhj3hMFubeh}(h]h ](jmacroeh"]h$]h&]jjjjLjjLjjjuh1jhhhhhNhNubh)}(h ``gpiochip_add_data (gc, data)``h]j)}(hjRh]hgpiochip_add_data (gc, data)}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j hjPubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMHhhhhubjc)}(hregister a gpio_chip h]h)}(hregister a gpio_chiph]hregister a gpio_chip}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMFhjhubah}(h]h ]h"]h$]h&]uh1jbhjzhMFhhhhubj)}(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:22: ./include/linux/gpio/driver.hhMJhjubj)}(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:22: ./include/linux/gpio/driver.hhMGhjubj$)}(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&]uh1hhjhMGhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMGhjubj)}(h7``data`` driver-private data associated with this chip h](j)}(h``data``h]j)}(hjh]hdata}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMHhjubj$)}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMHhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMHhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hjh]hContext}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMJhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMJhjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMLhjubh)}(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.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMKhjubh)}(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().}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMPhjubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMShjubh)}(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:22: ./include/linux/gpio/driver.hhMVhjubh)}(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:22: ./include/linux/gpio/driver.hhMWhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_pin_range (C struct)c.gpio_pin_rangehNtauh1j hhhhhNhNubj)}(hhh](j$)}(hgpio_pin_rangeh]j*)}(hstruct gpio_pin_rangeh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhM^ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhM^ubjS)}(hgpio_pin_rangeh]jY)}(hjh]hgpio_pin_range}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhM^ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhM^ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM^hjhhubj)}(hhh]h)}(h#pin range controlled by a gpio chiph]h#pin range controlled by a gpio chip}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM^ubeh}(h]h ](jstructeh"]h$]h&]jjjj%jj%jjjuh1jhhhhhNhNubj)}(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}(hj1hhhNhNubah}(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:22: ./include/linux/gpio/driver.hhMhj)ubj)}(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; };}hjJsbah}(h]h ]h"]h$]h&]jpjquh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj)ubh)}(h **Members**h]j)}(hj[h]hMembers}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjYubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhj)ubj)}(hhh](j)}(hA``node`` list for maintaining set of pin ranges, used internally h](j)}(h``node``h]j)}(hjzh]hnode}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjxubah}(h]h ]h"]h$]h&]uh1jha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjtubj$)}(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&]uh1j#hjtubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubj)}(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:22: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubj)}(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:22: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hha/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:22: ./include/linux/gpio/driver.hhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjqubeh}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_to_desc (C function)c.gpio_to_deschNtauh1j hhhhhNhNubj)}(hhh](j$)}(h/struct gpio_desc * gpio_to_desc (unsigned gpio)h]j*)}(h-struct gpio_desc *gpio_to_desc(unsigned gpio)h](j0)}(hj3h]hstruct}(hjFhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjBhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKubjB)}(h h]h }(hjThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBhhhjShKubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjehhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjbubah}(h]h ]h"]h$]h&] refdomainjreftype identifier reftargetjgmodnameN classnameNjj)}j]j ASTIdentifier)}j{ gpio_to_descsbc.gpio_to_descasbuh1hhjBhhhjShKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBhhhjShKubhdesc_sig_punctuation)}(h*h]h*}(hjhhhNhNubah}(h]h ]pah"]h$]h&]uh1jhjBhhhjShKubjS)}(h gpio_to_desch]jY)}(hjh]h gpio_to_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjBhhhjShKubhdesc_parameterlist)}(h(unsigned gpio)h]hdesc_parameter)}(h unsigned gpioh](hdesc_sig_keyword_type)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]ktah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hgpioh]hgpio}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhjBhhhjShKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj>hhhjShKubah}(h]j9ah ](j~jeh"]h$]h&]jj)jhuh1j#hjShKhj;hhubj)}(hhh]h)}(h'Convert a GPIO number to its descriptorh]h'Convert a GPIO number to its descriptor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj;hhhjShKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj,jj,jjjuh1jhhhhhNhNubj)}(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)}(hj6h]h Parameters}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhj0ubj)}(hhh]j)}(h%``unsigned gpio`` global GPIO number h](j)}(h``unsigned gpio``h]j)}(hjUh]h unsigned gpio}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjOubj$)}(hhh]h)}(hglobal GPIO numberh]hglobal GPIO number}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjjhKhjkubah}(h]h ]h"]h$]h&]uh1j#hjOubeh}(h]h ]h"]h$]h&]uh1jhjjhKhjLubah}(h]h ]h"]h$]h&]uh1jhj0ubh)}(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:25: ./drivers/gpio/gpiolib.chKhj0ubh)}(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:25: ./drivers/gpio/gpiolib.chKhj0ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_desc (C function)c.gpio_device_get_deschNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{gpio_device_get_descsbc.gpio_device_get_descasbuh1hhjhhhjhKubjB)}(h h]h }(hj'hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjS)}(hgpio_device_get_desch]jY)}(hj$h]hgpio_device_get_desc}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjBubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(h.(struct gpio_device *gdev, unsigned int hwnum)h](j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hjahhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj]ubjB)}(h h]h }(hjnhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj|ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j"c.gpio_device_get_descasbuh1hhj]ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjY)}(hgdevh]hgdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj]ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjYubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hhwnumh]hhwnum}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjYubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhjhhubj)}(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}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhj0hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjKjjKjjjuh1jhhhhhNhNubj)}(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)}(hjUh]h Parameters}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjOubj)}(hhh](j)}(hD``struct gpio_device *gdev`` GPIO device to get the descriptor from h](j)}(h``struct gpio_device *gdev``h]j)}(hjth]hstruct gpio_device *gdev}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjrubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjnubj$)}(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&]uh1j#hjnubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubj)}(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:25: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjkubeh}(h]h ]h"]h$]h&]uh1jhjOubh)}(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:25: ./drivers/gpio/gpiolib.chKhjOubh)}(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 }(hjhhhNhNubj)}(h ``EINVAL``h]hEINVAL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubhJ if no GPIO exists in the given chip for the specified hardware number or }(hjhhhNhNubj)}(h ``ENODEV``h]hENODEV}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh) if the underlying chip already vanished.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjOubh)}(h**Description**h]j)}(hj3h]h Description}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjOubh)}(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 }(hjIhhhNhNubhemphasis)}(h*NOT*h]hNOT}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jQhjIubh 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.}(hjIhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjOubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdesc_to_gpio (C function)c.desc_to_gpiohNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubjS)}(h desc_to_gpioh]jY)}(h desc_to_gpioh]h desc_to_gpio}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j0)}(hconsth]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj modnameN classnameNjj)}j]j)}j{jsbc.desc_to_gpioasbuh1hhjubjB)}(h h]h }(hj# hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj1 hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hj> hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhjhhubj)}(hhh]h)}(h2convert a GPIO descriptor to the integer namespaceh]h2convert a GPIO descriptor to the integer namespace}(hjh hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhje hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./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&]uh1j#hj 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:25: ./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:25: ./drivers/gpio/gpiolib.chKhj 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:25: ./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.}(hj!!hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_to_chip (C function)c.gpiod_to_chiphNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjP!hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjL!hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKubjB)}(h h]h }(hj^!hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjL!hhhj]!hKubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjo!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjl!ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjq!modnameN classnameNjj)}j]j)}j{ gpiod_to_chipsbc.gpiod_to_chipasbuh1hhjL!hhhj]!hKubjB)}(h h]h }(hj!hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjL!hhhj]!hKubj)}(hjh]h*}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjL!hhhj]!hKubjS)}(h gpiod_to_chiph]jY)}(hj!h]h gpiod_to_chip}(hj!hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj!ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjL!hhhj]!hKubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j0)}(hjh]hconst}(hj!hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj!ubjB)}(h h]h }(hj!hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj!ubj0)}(hj3h]hstruct}(hj!hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj!ubjB)}(h h]h }(hj!hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj!ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj"modnameN classnameNjj)}j]j!c.gpiod_to_chipasbuh1hhj!ubjB)}(h h]h }(hj!"hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj!ubj)}(hjh]h*}(hj/"hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!ubjY)}(hdesch]hdesc}(hj<"hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj!ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj!ubah}(h]h ]h"]h$]h&]jpjquh1jhjL!hhhj]!hKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjH!hhhj]!hKubah}(h]jC!ah ](j~jeh"]h$]h&]jj)jhuh1j#hj]!hKhjE!hhubj)}(hhh]h)}(h7Return the GPIO chip to which a GPIO descriptor belongsh]h7Return the GPIO chip to which a GPIO descriptor belongs}(hjf"hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chKhjc"hhubah}(h]h ]h"]h$]h&]uh1jhjE!hhhj]!hKubeh}(h]h ](jfunctioneh"]h$]h&]jjjj~"jj~"jjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chKhj"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)}(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:25: ./drivers/gpio/gpiolib.chKhj"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&]uh1j#hj"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:25: ./drivers/gpio/gpiolib.chKhj"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](jR)}(h *DEPRECATED*h]h DEPRECATED}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jQhj"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:25: ./drivers/gpio/gpiolib.chKhj"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:25: ./drivers/gpio/gpiolib.chKhj"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:25: ./drivers/gpio/gpiolib.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpiod_to_gpio_device (C function)c.gpiod_to_gpio_devicehNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj\#hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjX#hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjj#hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjX#hhhji#hMubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj{#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjx#ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj}#modnameN classnameNjj)}j]j)}j{gpiod_to_gpio_devicesbc.gpiod_to_gpio_deviceasbuh1hhjX#hhhji#hMubjB)}(h h]h }(hj#hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjX#hhhji#hMubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjX#hhhji#hMubjS)}(hgpiod_to_gpio_deviceh]jY)}(hj#h]hgpiod_to_gpio_device}(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj#ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjX#hhhji#hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj#hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj#ubjB)}(h h]h }(hj#hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj#ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj#hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj#modnameN classnameNjj)}j]j#c.gpiod_to_gpio_deviceasbuh1hhj#ubjB)}(h h]h }(hj$hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj#ubj)}(hjh]h*}(hj $hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj#ubjY)}(hdesch]hdesc}(hj-$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj#ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj#ubah}(h]h ]h"]h$]h&]jpjquh1jhjX#hhhji#hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjT#hhhji#hMubah}(h]jO#ah ](j~jeh"]h$]h&]jj)jhuh1j#hji#hMhjQ#hhubj)}(hhh]h)}(h8Return the GPIO device to which this descriptor belongs.h]h8Return the GPIO device to which this descriptor belongs.}(hjW$hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjT$hhubah}(h]h ]h"]h$]h&]uh1jhjQ#hhhji#hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjo$jjo$jjjuh1jhhhhhNhNubj)}(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)}(hjy$h]h Parameters}(hj{$hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjw$ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjs$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:25: ./drivers/gpio/gpiolib.chMhj$ubj$)}(hhh]h)}(h/Descriptor for which to return the GPIO device.h]h/Descriptor for which to return the GPIO device.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1j#hj$ubeh}(h]h ]h"]h$]h&]uh1jhj$hMhj$ubah}(h]h ]h"]h$]h&]uh1jhjs$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:25: ./drivers/gpio/gpiolib.chM hjs$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$hhhNhNubjR)}(h *DOES NOT*h]hDOES NOT}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jQhj$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:25: ./drivers/gpio/gpiolib.chMhjs$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:25: ./drivers/gpio/gpiolib.chM hjs$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:25: ./drivers/gpio/gpiolib.chM hjs$ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_base (C function)c.gpio_device_get_basehNtauh1j hhhhhNhNubj)}(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}(hjQ%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjM%hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj`%hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjM%hhhj_%hMubjS)}(hgpio_device_get_baseh]jY)}(hgpio_device_get_baseh]hgpio_device_get_base}(hjr%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjn%ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjM%hhhj_%hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hj%hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj%ubjB)}(h h]h }(hj%hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj%ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj%modnameN classnameNjj)}j]j)}j{jt%sbc.gpio_device_get_baseasbuh1hhj%ubjB)}(h h]h }(hj%hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%ubj)}(hjh]h*}(hj%hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjY)}(hgdevh]hgdev}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj%ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj%ubah}(h]h ]h"]h$]h&]jpjquh1jhjM%hhhj_%hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjI%hhhj_%hMubah}(h]jD%ah ](j~jeh"]h$]h&]jj)jhuh1j#hj_%hMhjF%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:25: ./drivers/gpio/gpiolib.chMhj&hhubah}(h]h ]h"]h$]h&]uh1jhjF%hhhj_%hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)&jj)&jjjuh1jhhhhhNhNubj)}(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)}(hj3&h]h Parameters}(hj5&hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1&ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-&ubj)}(hhh]j)}(h)``struct gpio_device *gdev`` GPIO device h](j)}(h``struct gpio_device *gdev``h]j)}(hjR&h]hstruct gpio_device *gdev}(hjT&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjP&ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjL&ubj$)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hjk&hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjg&hMhjh&ubah}(h]h ]h"]h$]h&]uh1j#hjL&ubeh}(h]h ]h"]h$]h&]uh1jhjg&hMhjI&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:25: ./drivers/gpio/gpiolib.chMhj-&ubh)}(hAFirst GPIO number in the global GPIO numberspace for this device.h]hAFirst GPIO number in the global GPIO numberspace for this device.}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-&ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpio_device_get_label (C function)c.gpio_device_get_labelhNtauh1j hhhhhNhNubj)}(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](j0)}(hjh]hconst}(hj&hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj&hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM'ubjB)}(h h]h }(hj&hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj&hhhj&hM'ubj)}(hcharh]hchar}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hM'ubjB)}(h h]h }(hj&hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj&hhhj&hM'ubj)}(hjh]h*}(hj 'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&hhhj&hM'ubjS)}(hgpio_device_get_labelh]jY)}(hgpio_device_get_labelh]hgpio_device_get_label}(hj'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj'ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj&hhhj&hM'ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hj7'hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj3'ubjB)}(h h]h }(hjD'hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3'ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hjU'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjR'ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjW'modnameN classnameNjj)}j]j)}j{j'sbc.gpio_device_get_labelasbuh1hhj3'ubjB)}(h h]h }(hju'hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3'ubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3'ubjY)}(hgdevh]hgdev}(hj'hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj3'ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj/'ubah}(h]h ]h"]h$]h&]jpjquh1jhj&hhhj&hM'ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj&hhhj&hM'ubah}(h]j&ah ](j~jeh"]h$]h&]jj)jhuh1j#hj&hM'hj&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:25: ./drivers/gpio/gpiolib.chM'hj'hhubah}(h]h ]h"]h$]h&]uh1jhj&hhhj&hM'ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj'jj'jjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./drivers/gpio/gpiolib.chM(hj'ubj$)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hM(hj(ubah}(h]h ]h"]h$]h&]uh1j#hj'ubeh}(h]h ]h"]h$]h&]uh1jhj(hM(hj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubh)}(h **Return**h]j)}(hj6(h]hReturn}(hj8(hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj4(ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM*hj'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.}(hjL(hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM*hj'ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpio_device_get_chip (C function)c.gpio_device_get_chiphNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj{(hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjw(hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM5ubjB)}(h h]h }(hj(hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjw(hhhj(hM5ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj(ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj(modnameN classnameNjj)}j]j)}j{gpio_device_get_chipsbc.gpio_device_get_chipasbuh1hhjw(hhhj(hM5ubjB)}(h h]h }(hj(hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjw(hhhj(hM5ubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjw(hhhj(hM5ubjS)}(hgpio_device_get_chiph]jY)}(hj(h]hgpio_device_get_chip}(hj(hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj(ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjw(hhhj(hM5ubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hj(hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj(ubjB)}(h h]h }(hj)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj(ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj)ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj)modnameN classnameNjj)}j]j(c.gpio_device_get_chipasbuh1hhj(ubjB)}(h h]h }(hj1)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj(ubj)}(hjh]h*}(hj?)hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj(ubjY)}(hgdevh]hgdev}(hjL)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj(ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj(ubah}(h]h ]h"]h$]h&]jpjquh1jhjw(hhhj(hM5ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjs(hhhj(hM5ubah}(h]jn(ah ](j~jeh"]h$]h&]jj)jhuh1j#hj(hM5hjp(hhubj)}(hhh]h)}(h4Get the gpio_chip implementation of this GPIO deviceh]h4Get the gpio_chip implementation of this GPIO device}(hjv)hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM5hjs)hhubah}(h]h ]h"]h$]h&]uh1jhjp(hhhj(hM5ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj)jj)jjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chM9hj)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:25: ./drivers/gpio/gpiolib.chM6hj)ubj$)}(hhh]h)}(h GPIO deviceh]h GPIO device}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)hM6hj)ubah}(h]h ]h"]h$]h&]uh1j#hj)ubeh}(h]h ]h"]h$]h&]uh1jhj)hM6hj)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:25: ./drivers/gpio/gpiolib.chM8hj)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:25: ./drivers/gpio/gpiolib.chM8hj)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:25: ./drivers/gpio/gpiolib.chM:hj)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](jR)}(h *DEPRECATED*h]h DEPRECATED}(hj3*hhhNhNubah}(h]h ]h"]h$]h&]uh1jQhj/*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/*hhhNhNubjR)}(h*NOT*h]hNOT}(hjE*hhhNhNubah}(h]h ]h"]h$]h&]uh1jQhj/*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:25: ./drivers/gpio/gpiolib.chM:hj)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:25: ./drivers/gpio/gpiolib.chMAhj)ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_is_equal (C function)c.gpiod_is_equalhNtauh1j hhhhhNhNubj)}(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}(hj*hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj*hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj*hhhj*hMubjS)}(hgpiod_is_equalh]jY)}(hgpiod_is_equalh]hgpiod_is_equal}(hj*hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj*ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj*hhhj*hMubj)}(h=(const struct gpio_desc *desc, const struct gpio_desc *other)h](j)}(hconst struct gpio_desc *desch](j0)}(hjh]hconst}(hj*hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj*ubjB)}(h h]h }(hj*hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj*ubj0)}(hj3h]hstruct}(hj*hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj*ubjB)}(h h]h }(hj*hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj*ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj+modnameN classnameNjj)}j]j)}j{j*sbc.gpiod_is_equalasbuh1hhj*ubjB)}(h h]h }(hj#+hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj*ubj)}(hjh]h*}(hj1+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*ubjY)}(hdesch]hdesc}(hj>+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj*ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj*ubj)}(hconst struct gpio_desc *otherh](j0)}(hjh]hconst}(hjW+hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjS+ubjB)}(h h]h }(hjd+hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjS+ubj0)}(hj3h]hstruct}(hjr+hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjS+ubjB)}(h h]h }(hj+hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjS+ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj+modnameN classnameNjj)}j]j+c.gpiod_is_equalasbuh1hhjS+ubjB)}(h h]h }(hj+hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjS+ubj)}(hjh]h*}(hj+hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjS+ubjY)}(hotherh]hother}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjS+ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj*ubeh}(h]h ]h"]h$]h&]jpjquh1jhj*hhhj*hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj*hhhj*hMubah}(h]j*ah ](j~jeh"]h$]h&]jj)jhuh1j#hj*hMhj*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:25: ./drivers/gpio/gpiolib.chMhj+hhubah}(h]h ]h"]h$]h&]uh1jhj*hhhj*hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj ,jj ,jjjuh1jhhhhhNhNubj)}(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:25: ./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)}(hj4,h]hconst struct gpio_desc *desc}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj2,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj.,ubj$)}(hhh]h)}(hDescriptor to compare.h]hDescriptor to compare.}(hjM,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjI,hMhjJ,ubah}(h]h ]h"]h$]h&]uh1j#hj.,ubeh}(h]h ]h"]h$]h&]uh1jhjI,hMhj+,ubj)}(hL``const struct gpio_desc *other`` The second descriptor to compare against. h](j)}(h!``const struct gpio_desc *other``h]j)}(hjm,h]hconst struct gpio_desc *other}(hjo,hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjk,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjg,ubj$)}(hhh]h)}(h)The second descriptor to compare against.h]h)The second descriptor to compare against.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj,ubah}(h]h ]h"]h$]h&]uh1j#hjg,ubeh}(h]h ]h"]h$]h&]uh1jhj,hMhj+,ubeh}(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:25: ./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:25: ./drivers/gpio/gpiolib.chMhj,ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_get_direction (C function)c.gpiod_get_directionhNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj,hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj,hhhj,hMubjS)}(hgpiod_get_directionh]jY)}(hgpiod_get_directionh]hgpiod_get_direction}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj -ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj,hhhj,hMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj*-hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj&-ubjB)}(h h]h }(hj7-hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj&-ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjH-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjE-ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjJ-modnameN classnameNjj)}j]j)}j{j-sbc.gpiod_get_directionasbuh1hhj&-ubjB)}(h h]h }(hjh-hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj&-ubj)}(hjh]h*}(hjv-hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&-ubjY)}(hdesch]hdesc}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj&-ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj"-ubah}(h]h ]h"]h$]h&]jpjquh1jhj,hhhj,hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj,hhhj,hMubah}(h]j,ah ](j~jeh"]h$]h&]jj)jhuh1j#hj,hMhj,hhubj)}(hhh]h)}(h&return the current direction of a GPIOh]h&return the current direction of a GPIO}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-hhubah}(h]h ]h"]h$]h&]uh1jhj,hhhj,hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj-jj-jjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./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&]uh1j#hj-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:25: ./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.}(hj?.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-ubh)}(h**Description**h]j)}(hjP.h]h Description}(hjR.hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjN.ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-ubh)}(h4This function may sleep if gpiod_cansleep() is true.h]h4This function may sleep if gpiod_cansleep() is true.}(hjf.hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj-ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiochip_query_valid_mask (C function)c.gpiochip_query_valid_maskhNtauh1j hhhhhNhNubj)}(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](j0)}(hjh]hconst}(hj.hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj.hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj.hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.hhhj.hMubj)}(hunsignedh]hunsigned}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMubjB)}(h h]h }(hj.hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.hhhj.hMubj)}(hlongh]hlong}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMubjB)}(h h]h }(hj.hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.hhhj.hMubj)}(hjh]h*}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhhj.hMubjS)}(hgpiochip_query_valid_maskh]jY)}(hgpiochip_query_valid_maskh]hgpiochip_query_valid_mask}(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj.ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj.hhhj.hMubj)}(h(const struct gpio_chip *gc)h]j)}(hconst struct gpio_chip *gch](j0)}(hjh]hconst}(hj/hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj/ubjB)}(h h]h }(hj#/hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj0)}(hj3h]hstruct}(hj1/hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj/ubjB)}(h h]h }(hj>/hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjO/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjL/ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjQ/modnameN classnameNjj)}j]j)}j{j.sbc.gpiochip_query_valid_maskasbuh1hhj/ubjB)}(h h]h }(hjo/hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj)}(hjh]h*}(hj}/hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjY)}(hgch]hgc}(hj/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj/ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj/ubah}(h]h ]h"]h$]h&]jpjquh1jhj.hhhj.hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj.hhhj.hMubah}(h]j.ah ](j~jeh"]h$]h&]jj)jhuh1j#hj.hMhj.hhubj)}(hhh]h)}(h$return the GPIO validity informationh]h$return the GPIO validity information}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj/hhubah}(h]h ]h"]h$]h&]uh1jhj.hhhj.hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhj/ubj)}(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)}(hj/h]hconst struct gpio_chip *gc}(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:25: ./drivers/gpio/gpiolib.chMhj/ubj$)}(hhh]h)}(h/gpio chip which validity information is queriedh]h/gpio chip which validity information is queried}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj 0hMhj 0ubah}(h]h ]h"]h$]h&]uh1j#hj/ubeh}(h]h ]h"]h$]h&]uh1jhj 0hMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubh)}(h **Return**h]j)}(hj00h]hReturn}(hj20hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj.0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj/ubh)}(h>bitmap representing valid GPIOs or NULL if all GPIOs are validh]h>bitmap representing valid GPIOs or NULL if all GPIOs are valid}(hjF0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj/ubh)}(h**Description**h]j)}(hjW0h]h Description}(hjY0hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjU0ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj/ubh)}(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.}(hjm0hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj/ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_get_data (C function)c.gpiochip_get_datahNtauh1j hhhhhNhNubj)}(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}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj0hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0hhhj0hMubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0hhhj0hMubjS)}(hgpiochip_get_datah]jY)}(hgpiochip_get_datah]hgpiochip_get_data}(hj0hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj0ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj0hhhj0hMubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hj0hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj0ubjB)}(h h]h }(hj0hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj1modnameN classnameNjj)}j]j)}j{j0sbc.gpiochip_get_dataasbuh1hhj0ubjB)}(h h]h }(hj$1hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0ubj)}(hjh]h*}(hj21hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjY)}(hgch]hgc}(hj?1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj0ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj0ubah}(h]h ]h"]h$]h&]jpjquh1jhj0hhhj0hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj0hhhj0hMubah}(h]j0ah ](j~jeh"]h$]h&]jj)jhuh1j#hj0hMhj0hhubj)}(hhh]h)}(h#get per-subdriver data for the chiph]h#get per-subdriver data for the chip}(hji1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjf1hhubah}(h]h ]h"]h$]h&]uh1jhj0hhhj0hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj1jj1jjjuh1jhhhhhNhNubj)}(hf**Parameters** ``struct gpio_chip *gc`` GPIO chip **Return** The per-subdriver data for the chip.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:25: ./drivers/gpio/gpiolib.chMhj1ubj)}(hhh]j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j)}(hj1h]hstruct 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:25: ./drivers/gpio/gpiolib.chMhj1ubj$)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj1ubah}(h]h ]h"]h$]h&]uh1j#hj1ubeh}(h]h ]h"]h$]h&]uh1jhj1hMhj1ubah}(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:25: ./drivers/gpio/gpiolib.chMhj1ubh)}(h$The per-subdriver data for the chip.h]h$The per-subdriver data for the chip.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj1ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiochip_remove (C function)c.gpiochip_removehNtauh1j hhhhhNhNubj)}(hhh](j$)}(h+void gpiochip_remove (struct gpio_chip *gc)h]j*)}(h*void gpiochip_remove(struct gpio_chip *gc)h](j)}(hvoidh]hvoid}(hj*2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj&2hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj92hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj&2hhhj82hMubjS)}(hgpiochip_removeh]jY)}(hgpiochip_removeh]hgpiochip_remove}(hjK2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjG2ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj&2hhhj82hMubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjg2hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjc2ubjB)}(h h]h }(hjt2hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjc2ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj2ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj2modnameN classnameNjj)}j]j)}j{jM2sbc.gpiochip_removeasbuh1hhjc2ubjB)}(h h]h }(hj2hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjc2ubj)}(hjh]h*}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjc2ubjY)}(hgch]hgc}(hj2hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjc2ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj_2ubah}(h]h ]h"]h$]h&]jpjquh1jhj&2hhhj82hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj"2hhhj82hMubah}(h]j2ah ](j~jeh"]h$]h&]jj)jhuh1j#hj82hMhj2hhubj)}(hhh]h)}(hunregister a gpio_chiph]hunregister a gpio_chip}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj2hhubah}(h]h ]h"]h$]h&]uh1jhj2hhhj82hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhhhNhNubj)}(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)}(hj 3h]h Parameters}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj 3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj3ubj)}(hhh]j)}(h0``struct gpio_chip *gc`` the chip to unregister h](j)}(h``struct gpio_chip *gc``h]j)}(hj+3h]hstruct gpio_chip *gc}(hj-3hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj)3ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj%3ubj$)}(hhh]h)}(hthe chip to unregisterh]hthe chip to unregister}(hjD3hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj@3hMhjA3ubah}(h]h ]h"]h$]h&]uh1j#hj%3ubeh}(h]h ]h"]h$]h&]uh1jhj@3hMhj"3ubah}(h]h ]h"]h$]h&]uh1jhj3ubh)}(h**Description**h]j)}(hjf3h]h Description}(hjh3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjd3ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj3ubh)}(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.}(hj|3hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_find (C function)c.gpio_device_findhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj3hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj3hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj3hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3hhhj3hMubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj3hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj3ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj3modnameN classnameNjj)}j]j)}j{gpio_device_findsbc.gpio_device_findasbuh1hhj3hhhj3hMubjB)}(h h]h }(hj3hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3hhhj3hMubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3hhhj3hMubjS)}(hgpio_device_findh]jY)}(hj3h]hgpio_device_find}(hj 4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj4ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj3hhhj3hMubj)}(hH(const void *data, int (*match)(struct gpio_chip *gc, const void *data))h](j)}(hconst void *datah](j0)}(hjh]hconst}(hj%4hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj!4ubjB)}(h h]h }(hj24hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj!4ubj)}(hvoidh]hvoid}(hj@4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!4ubjB)}(h h]h }(hjN4hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj!4ubj)}(hjh]h*}(hj\4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj!4ubjY)}(hdatah]hdata}(hji4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj!4ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj4ubj)}(h4int (*match)(struct gpio_chip *gc, const void *data)h](j)}(hinth]hint}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjB)}(h h]h }(hj4hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubj)}(h(h]h(}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjY)}(hmatchh]hmatch}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj~4ubj)}(h)h]h)}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubj)}(hj4h]h(}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubj0)}(hj3h]hstruct}(hj4hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj~4ubjB)}(h h]h }(hj4hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj4ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj5modnameN classnameNjj)}j]j3c.gpio_device_findasbuh1hhj~4ubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubj)}(hjh]h*}(hj,5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjY)}(hgch]hgc}(hj95hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj~4ubj)}(h,h]h,}(hjG5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjB)}(h h]h }(hjU5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubj0)}(hjh]hconst}(hjc5hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj~4ubjB)}(h h]h }(hjp5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubj)}(hvoidh]hvoid}(hj~5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj~4ubj)}(hjh]h*}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubjY)}(hdatah]hdata}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj~4ubj)}(hj4h]h)}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj~4ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj4ubeh}(h]h ]h"]h$]h&]jpjquh1jhj3hhhj3hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj3hhhj3hMubah}(h]j3ah ](j~jeh"]h$]h&]jj)jhuh1j#hj3hMhj3hhubj)}(hhh]h)}(hfind a specific GPIO deviceh]hfind a specific GPIO device}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj5hhubah}(h]h ]h"]h$]h&]uh1jhj3hhhj3hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5jj5jjjuh1jhhhhhNhNubj)}(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)}(hj6h]h Parameters}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM!hj5ubj)}(hhh](j)}(h4``const void *data`` data to pass to match function h](j)}(h``const void *data``h]j)}(hj6h]hconst void *data}(hj!6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj6ubj$)}(hhh]h)}(hdata to pass to match functionh]hdata to pass to match function}(hj86hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj46hMhj56ubah}(h]h ]h"]h$]h&]uh1j#hj6ubeh}(h]h ]h"]h$]h&]uh1jhj46hMhj6ubj)}(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)}(hjX6h]h4int (*match)(struct gpio_chip *gc, const void *data)}(hjZ6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjV6ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjR6ubj$)}(hhh]h)}(h$Callback function to check gpio_chiph]h$Callback function to check gpio_chip}(hjq6hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm6hMhjn6ubah}(h]h ]h"]h$]h&]uh1j#hjR6ubeh}(h]h ]h"]h$]h&]uh1jhjm6hMhj6ubeh}(h]h ]h"]h$]h&]uh1jhj5ubh)}(h **Return**h]j)}(hj6h]hReturn}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM!hj5ubh)}(h$New reference to struct gpio_device.h]h$New reference to struct gpio_device.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM!hj5ubh)}(h**Description**h]j)}(hj6h]h Description}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM#hj5ubh)}(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 }(hj6hhhNhNubj)}(h **match**h]hmatch}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubh 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.}(hj6hhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM#hj5ubh)}(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.}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM)hj5ubh)}(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().}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM-hj5ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpio_device_find_by_label (C function)c.gpio_device_find_by_labelhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj/7hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj+7hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMSubjB)}(h h]h }(hj=7hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj+7hhhj<7hMSubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hjN7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjK7ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjP7modnameN classnameNjj)}j]j)}j{gpio_device_find_by_labelsbc.gpio_device_find_by_labelasbuh1hhj+7hhhj<7hMSubjB)}(h h]h }(hjo7hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj+7hhhj<7hMSubj)}(hjh]h*}(hj}7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+7hhhj<7hMSubjS)}(hgpio_device_find_by_labelh]jY)}(hjl7h]hgpio_device_find_by_label}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj7ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj+7hhhj<7hMSubj)}(h(const char *label)h]j)}(hconst char *labelh](j0)}(hjh]hconst}(hj7hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj7ubjB)}(h h]h }(hj7hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj7ubj)}(hcharh]hchar}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjB)}(h h]h }(hj7hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj7ubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj7ubjY)}(hlabelh]hlabel}(hj7hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj7ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7ubah}(h]h ]h"]h$]h&]jpjquh1jhj+7hhhj<7hMSubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj'7hhhj<7hMSubah}(h]j"7ah ](j~jeh"]h$]h&]jj)jhuh1j#hj<7hMShj$7hhubj)}(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}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMShj8hhubah}(h]h ]h"]h$]h&]uh1jhj$7hhhj<7hMSubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/8jj/8jjjuh1jhhhhhNhNubj)}(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)}(hj98h]h Parameters}(hj;8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj78ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMWhj38ubj)}(hhh]j)}(h&``const char *label`` Label to lookup h](j)}(h``const char *label``h]j)}(hjX8h]hconst char *label}(hjZ8hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjV8ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMUhjR8ubj$)}(hhh]h)}(hLabel to lookuph]hLabel to lookup}(hjq8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjm8hMUhjn8ubah}(h]h ]h"]h$]h&]uh1j#hjR8ubeh}(h]h ]h"]h$]h&]uh1jhjm8hMUhjO8ubah}(h]h ]h"]h$]h&]uh1jhj38ubh)}(h **Return**h]j)}(hj8h]hReturn}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj8ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMWhj38ubh)}(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().}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMWhj38ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'gpio_device_find_by_fwnode (C function)c.gpio_device_find_by_fwnodehNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj8hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj8hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMgubjB)}(h h]h }(hj8hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj8hhhj8hMgubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj8hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj8ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj8modnameN classnameNjj)}j]j)}j{gpio_device_find_by_fwnodesbc.gpio_device_find_by_fwnodeasbuh1hhj8hhhj8hMgubjB)}(h h]h }(hj9hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj8hhhj8hMgubj)}(hjh]h*}(hj&9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj8hhhj8hMgubjS)}(hgpio_device_find_by_fwnodeh]jY)}(hj9h]hgpio_device_find_by_fwnode}(hj79hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj39ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj8hhhj8hMgubj)}(h$(const struct fwnode_handle *fwnode)h]j)}(h"const struct fwnode_handle *fwnodeh](j0)}(hjh]hconst}(hjR9hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjN9ubjB)}(h h]h }(hj_9hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjN9ubj0)}(hj3h]hstruct}(hjm9hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjN9ubjB)}(h h]h }(hjz9hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjN9ubh)}(hhh]jY)}(h fwnode_handleh]h fwnode_handle}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj9ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj9modnameN classnameNjj)}j]j9c.gpio_device_find_by_fwnodeasbuh1hhjN9ubjB)}(h h]h }(hj9hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjN9ubj)}(hjh]h*}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN9ubjY)}(hfwnodeh]hfwnode}(hj9hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjN9ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjJ9ubah}(h]h ]h"]h$]h&]jpjquh1jhj8hhhj8hMgubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj8hhhj8hMgubah}(h]j8ah ](j~jeh"]h$]h&]jj)jhuh1j#hj8hMghj8hhubj)}(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}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMghj9hhubah}(h]h ]h"]h$]h&]uh1jhj8hhhj8hMgubeh}(h]h ](jfunctioneh"]h$]h&]jjjj:jj:jjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMkhj :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}(hj1: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:25: ./drivers/gpio/gpiolib.chMihj):ubj$)}(hhh]h)}(hFirmware node to lookuph]hFirmware node to lookup}(hjH:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjD:hMihjE:ubah}(h]h ]h"]h$]h&]uh1j#hj):ubeh}(h]h ]h"]h$]h&]uh1jhjD:hMihj&:ubah}(h]h ]h"]h$]h&]uh1jhj :ubh)}(h **Return**h]j)}(hjj:h]hReturn}(hjl:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjh:ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMkhj :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().}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMkhj :ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_get (C function)c.gpio_device_gethNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj:hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj:hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMvubjB)}(h h]h }(hj:hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj:hhhj:hMvubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj:ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj:modnameN classnameNjj)}j]j)}j{gpio_device_getsbc.gpio_device_getasbuh1hhj:hhhj:hMvubjB)}(h h]h }(hj:hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj:hhhj:hMvubj)}(hjh]h*}(hj:hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:hhhj:hMvubjS)}(hgpio_device_geth]jY)}(hj:h]hgpio_device_get}(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ;ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj:hhhj:hMvubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hj);hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj%;ubjB)}(h h]h }(hj6;hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%;ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hjG;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjD;ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjI;modnameN classnameNjj)}j]j:c.gpio_device_getasbuh1hhj%;ubjB)}(h h]h }(hje;hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%;ubj)}(hjh]h*}(hjs;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%;ubjY)}(hgdevh]hgdev}(hj;hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj%;ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj!;ubah}(h]h ]h"]h$]h&]jpjquh1jhj:hhhj:hMvubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj:hhhj:hMvubah}(h]j:ah ](j~jeh"]h$]h&]jj)jhuh1j#hj:hMvhj:hhubj)}(hhh]h)}(h0Increase the reference count of this GPIO deviceh]h0Increase the reference count of this GPIO device}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMvhj;hhubah}(h]h ]h"]h$]h&]uh1jhj:hhhj:hMvubeh}(h]h ](jfunctioneh"]h$]h&]jjjj;jj;jjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMzhj;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:25: ./drivers/gpio/gpiolib.chMwhj;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<hMwhj<ubah}(h]h ]h"]h$]h&]uh1j#hj;ubeh}(h]h ]h"]h$]h&]uh1jhj<hMwhj;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:25: ./drivers/gpio/gpiolib.chMyhj;ubh)}(hPointer to **gdev**.h](h Pointer to }(hj<<hhhNhNubj)}(h**gdev**h]hgdev}(hjD<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:25: ./drivers/gpio/gpiolib.chMyhj;ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpio_device_put (C function)c.gpio_device_puthNtauh1j hhhhhNhNubj)}(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}(hj}<hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjy<hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj<hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjy<hhhj<hMubjS)}(hgpio_device_puth]jY)}(hgpio_device_puth]hgpio_device_put}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj<ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjy<hhhj<hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hj<hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj<ubjB)}(h h]h }(hj<hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj<ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hj<hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj<ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj<modnameN classnameNjj)}j]j)}j{j<sbc.gpio_device_putasbuh1hhj<ubjB)}(h h]h }(hj<hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj<ubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj<ubjY)}(hgdevh]hgdev}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj<ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj<ubah}(h]h ]h"]h$]h&]jpjquh1jhjy<hhhj<hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhju<hhhj<hMubah}(h]jp<ah ](j~jeh"]h$]h&]jj)jhuh1j#hj<hMhjr<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:25: ./drivers/gpio/gpiolib.chMhj:=hhubah}(h]h ]h"]h$]h&]uh1jhjr<hhhj<hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjU=jjU=jjjuh1jhhhhhNhNubj)}(h^**Parameters** ``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](h)}(h**Parameters**h]j)}(hj_=h]h Parameters}(hja=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]=ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjY=ubj)}(hhh]j)}(hL``struct gpio_device *gdev`` GPIO device to decrease the reference count forh](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:25: ./drivers/gpio/gpiolib.chMhjx=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:25: ./drivers/gpio/gpiolib.chMhj=ubah}(h]h ]h"]h$]h&]uh1j#hjx=ubeh}(h]h ]h"]h$]h&]uh1jhj=hMhju=ubah}(h]h ]h"]h$]h&]uh1jhjY=ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpio_device_to_device (C function)c.gpio_device_to_devicehNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj=hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj=hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj=hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj=hhhj=hMubh)}(hhh]jY)}(hdeviceh]hdevice}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj=ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj=modnameN classnameNjj)}j]j)}j{gpio_device_to_devicesbc.gpio_device_to_deviceasbuh1hhj=hhhj=hMubjB)}(h h]h }(hj>hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj=hhhj=hMubj)}(hjh]h*}(hj&>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj=hhhj=hMubjS)}(hgpio_device_to_deviceh]jY)}(hj>h]hgpio_device_to_device}(hj7>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj3>ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj=hhhj=hMubj)}(h(struct gpio_device *gdev)h]j)}(hstruct gpio_device *gdevh](j0)}(hj3h]hstruct}(hjR>hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjN>ubjB)}(h h]h }(hj_>hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjN>ubh)}(hhh]jY)}(h gpio_deviceh]h gpio_device}(hjp>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjm>ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjr>modnameN classnameNjj)}j]j>c.gpio_device_to_deviceasbuh1hhjN>ubjB)}(h h]h }(hj>hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjN>ubj)}(hjh]h*}(hj>hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjN>ubjY)}(hgdevh]hgdev}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjN>ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjJ>ubah}(h]h ]h"]h$]h&]jpjquh1jhj=hhhj=hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj=hhhj=hMubah}(h]j=ah ](j~jeh"]h$]h&]jj)jhuh1j#hj=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:25: ./drivers/gpio/gpiolib.chMhj>hhubah}(h]h ]h"]h$]h&]uh1jhj=hhhj=hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj>jj>jjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./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&]uh1j#hj?ubeh}(h]h ]h"]h$]h&]uh1jhj)?hMhj ?ubah}(h]h ]h"]h$]h&]uh1jhj>ubh)}(h**Description**h]j)}(hjO?h]h Description}(hjQ?hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjM?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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.}(hje?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj>ubh)}(h **Return**h]j)}(hjv?h]hReturn}(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:25: ./drivers/gpio/gpiolib.chMhj>ubh)}(h2Address of struct device backing this GPIO device.h]h2Address of struct device backing this GPIO device.}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj>ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(gpiochip_irqchip_add_domain (C function)c.gpiochip_irqchip_add_domainhNtauh1j hhhhhNhNubj)}(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}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj?hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj?hhhj?hMubjS)}(hgpiochip_irqchip_add_domainh]jY)}(hgpiochip_irqchip_add_domainh]hgpiochip_irqchip_add_domain}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj?ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj?hhhj?hMubj)}(h1(struct gpio_chip *gc, struct irq_domain *domain)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hj?hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj?ubjB)}(h h]h }(hj@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj?ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj@modnameN classnameNjj)}j]j)}j{j?sbc.gpiochip_irqchip_add_domainasbuh1hhj?ubjB)}(h h]h }(hj6@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj?ubj)}(hjh]h*}(hjD@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj?ubjY)}(hgch]hgc}(hjQ@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj?ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj?ubj)}(hstruct irq_domain *domainh](j0)}(hj3h]hstruct}(hjj@hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjf@ubjB)}(h h]h }(hjw@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjf@ubh)}(hhh]jY)}(h irq_domainh]h irq_domain}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj@ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj@modnameN classnameNjj)}j]j2@c.gpiochip_irqchip_add_domainasbuh1hhjf@ubjB)}(h h]h }(hj@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjf@ubj)}(hjh]h*}(hj@hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf@ubjY)}(hdomainh]hdomain}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjf@ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj?ubeh}(h]h ]h"]h$]h&]jpjquh1jhj?hhhj?hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj?hhhj?hMubah}(h]j?ah ](j~jeh"]h$]h&]jj)jhuh1j#hj?hMhj?hhubj)}(hhh]h)}(hadds an irqdomain to a gpiochiph]hadds an irqdomain to a gpiochip}(hj@hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj@hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhj?hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjAjjAjjjuh1jhhhhhNhNubj)}(hX**Parameters** ``struct gpio_chip *gc`` the gpiochip to add the irqchip to ``struct irq_domain *domain`` the irqdomain to add to the gpiochip **Description** This function adds an IRQ domain to the gpiochip. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj Ah]h Parameters}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj Aubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjAubj)}(hhh](j)}(h<``struct gpio_chip *gc`` the gpiochip to add the irqchip to h](j)}(h``struct gpio_chip *gc``h]j)}(hj,Ah]hstruct gpio_chip *gc}(hj.AhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj*Aubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj&Aubj$)}(hhh]h)}(h"the gpiochip to add the irqchip toh]h"the gpiochip to add the irqchip to}(hjEAhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAAhMhjBAubah}(h]h ]h"]h$]h&]uh1j#hj&Aubeh}(h]h ]h"]h$]h&]uh1jhjAAhMhj#Aubj)}(hC``struct irq_domain *domain`` the irqdomain to add to the gpiochip h](j)}(h``struct irq_domain *domain``h]j)}(hjeAh]hstruct irq_domain *domain}(hjgAhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj_Aubj$)}(hhh]h)}(h$the irqdomain to add to the gpiochiph]h$the irqdomain to add to the gpiochip}(hj~AhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzAhMhj{Aubah}(h]h ]h"]h$]h&]uh1j#hj_Aubeh}(h]h ]h"]h$]h&]uh1jhjzAhMhj#Aubeh}(h]h ]h"]h$]h&]uh1jhjAubh)}(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:25: ./drivers/gpio/gpiolib.chMhjAubh)}(h1This function adds an IRQ domain to the gpiochip.h]h1This function adds an IRQ domain to the gpiochip.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjAubh)}(h **Return**h]j)}(hjAh]hReturn}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjAubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjAubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiochip_generic_request (C function)c.gpiochip_generic_requesthNtauh1j hhhhhNhNubj)}(hhh](j$)}(hHint gpiochip_generic_request (struct gpio_chip *gc, unsigned int offset)h]j*)}(hGint gpiochip_generic_request(struct gpio_chip *gc, unsigned int offset)h](j)}(hinth]hint}(hj BhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBhhhjBhMubjS)}(hgpiochip_generic_requesth]jY)}(hgpiochip_generic_requesth]hgpiochip_generic_request}(hj-BhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj)Bubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjBhhhjBhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjIBhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjEBubjB)}(h h]h }(hjVBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEBubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjgBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjdBubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjiBmodnameN classnameNjj)}j]j)}j{j/Bsbc.gpiochip_generic_requestasbuh1hhjEBubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEBubj)}(hjh]h*}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEBubjY)}(hgch]hgc}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjEBubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjABubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBubj)}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBubjY)}(hoffseth]hoffset}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjABubeh}(h]h ]h"]h$]h&]jpjquh1jhjBhhhjBhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjBhhhjBhMubah}(h]jAah ](j~jeh"]h$]h&]jj)jhuh1j#hjBhMhjBhhubj)}(hhh]h)}(h#request the gpio function for a pinh]h#request the gpio function for a pin}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjChhubah}(h]h ]h"]h$]h&]uh1jhjBhhhjBhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj5Cjj5Cjjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_chip *gc`` the gpiochip owning the GPIO ``unsigned int offset`` the offset of the GPIO to request for GPIO function **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hj?Ch]h Parameters}(hjAChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj=Cubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj9Cubj)}(hhh](j)}(h6``struct gpio_chip *gc`` the gpiochip owning the GPIO h](j)}(h``struct gpio_chip *gc``h]j)}(hj^Ch]hstruct gpio_chip *gc}(hj`ChhhNhNubah}(h]h ]h"]h$]h&]uh1j hj\Cubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjXCubj$)}(hhh]h)}(hthe gpiochip owning the GPIOh]hthe gpiochip owning the GPIO}(hjwChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjsChMhjtCubah}(h]h ]h"]h$]h&]uh1j#hjXCubeh}(h]h ]h"]h$]h&]uh1jhjsChMhjUCubj)}(hL``unsigned int offset`` the offset of the GPIO to request for GPIO function h](j)}(h``unsigned int offset``h]j)}(hjCh]hunsigned int offset}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjCubj$)}(hhh]h)}(h3the offset of the GPIO to request for GPIO functionh]h3the offset of the GPIO to request for GPIO function}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjCubah}(h]h ]h"]h$]h&]uh1j#hjCubeh}(h]h ]h"]h$]h&]uh1jhjChMhjUCubeh}(h]h ]h"]h$]h&]uh1jhj9Cubh)}(h **Return**h]j)}(hjCh]hReturn}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhjCubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj9Cubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj9Cubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiochip_generic_free (C function)c.gpiochip_generic_freehNtauh1j hhhhhNhNubj)}(hhh](j$)}(hFvoid gpiochip_generic_free (struct gpio_chip *gc, unsigned int offset)h]j*)}(hEvoid gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset)h](j)}(hvoidh]hvoid}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj&DhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjDhhhj%DhMubjS)}(hgpiochip_generic_freeh]jY)}(hgpiochip_generic_freeh]hgpiochip_generic_free}(hj8DhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj4Dubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjDhhhj%DhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjTDhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjPDubjB)}(h h]h }(hjaDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjPDubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjrDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjoDubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjtDmodnameN classnameNjj)}j]j)}j{j:Dsbc.gpiochip_generic_freeasbuh1hhjPDubjB)}(h h]h }(hjDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjPDubj)}(hjh]h*}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPDubjY)}(hgch]hgc}(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjPDubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjLDubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjB)}(h h]h }(hjDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjDubj)}(hinth]hint}(hjDhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjB)}(h h]h }(hjDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjDubjY)}(hoffseth]hoffset}(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjDubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjLDubeh}(h]h ]h"]h$]h&]jpjquh1jhjDhhhj%DhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjDhhhj%DhMubah}(h]j Dah ](j~jeh"]h$]h&]jj)jhuh1j#hj%DhMhj Dhhubj)}(hhh]h)}(h!free the gpio function from a pinh]h!free the gpio function from a pin}(hj(EhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj%Ehhubah}(h]h ]h"]h$]h&]uh1jhj Dhhhj%DhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj@Ejj@Ejjjuh1jhhhhhNhNubj)}(h**Parameters** ``struct gpio_chip *gc`` the gpiochip to request the gpio function for ``unsigned int offset`` the offset of the GPIO to free from GPIO functionh](h)}(h**Parameters**h]j)}(hjJEh]h Parameters}(hjLEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjHEubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjDEubj)}(hhh](j)}(hG``struct gpio_chip *gc`` the gpiochip to request the gpio function for h](j)}(h``struct gpio_chip *gc``h]j)}(hjiEh]hstruct gpio_chip *gc}(hjkEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjgEubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjcEubj$)}(hhh]h)}(h-the gpiochip to request the gpio function forh]h-the gpiochip to request the gpio function for}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj~EhMhjEubah}(h]h ]h"]h$]h&]uh1j#hjcEubeh}(h]h ]h"]h$]h&]uh1jhj~EhMhj`Eubj)}(hI``unsigned int offset`` the offset of the GPIO to free from GPIO functionh](j)}(h``unsigned int offset``h]j)}(hjEh]hunsigned int offset}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjEubj$)}(hhh]h)}(h1the offset of the GPIO to free from GPIO functionh]h1the offset of the GPIO to free from GPIO function}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjEubah}(h]h ]h"]h$]h&]uh1j#hjEubeh}(h]h ]h"]h$]h&]uh1jhjEhMhj`Eubeh}(h]h ]h"]h$]h&]uh1jhjDEubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$gpiochip_generic_config (C function)c.gpiochip_generic_confighNtauh1j hhhhhNhNubj)}(hhh](j$)}(h]int gpiochip_generic_config (struct gpio_chip *gc, unsigned int offset, unsigned long config)h]j*)}(h\int gpiochip_generic_config(struct gpio_chip *gc, unsigned int offset, unsigned long config)h](j)}(hinth]hint}(hjEhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj FhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEhhhj FhMubjS)}(hgpiochip_generic_configh]jY)}(hgpiochip_generic_configh]hgpiochip_generic_config}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjFubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjEhhhj FhMubj)}(hA(struct gpio_chip *gc, unsigned int offset, unsigned long config)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hj9FhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj5FubjB)}(h h]h }(hjFFhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5Fubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjWFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjTFubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjYFmodnameN classnameNjj)}j]j)}j{jFsbc.gpiochip_generic_configasbuh1hhj5FubjB)}(h h]h }(hjwFhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5Fubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5FubjY)}(hgch]hgc}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj5Fubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj1Fubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjB)}(h h]h }(hjFhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubj)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjB)}(h h]h }(hjFhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubjY)}(hoffseth]hoffset}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjFubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj1Fubj)}(hunsigned long configh](j)}(hunsignedh]hunsigned}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjB)}(h h]h }(hj GhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubj)}(hlongh]hlong}(hjGhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjB)}(h h]h }(hj&GhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubjY)}(hconfigh]hconfig}(hj4GhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjFubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj1Fubeh}(h]h ]h"]h$]h&]jpjquh1jhjEhhhj FhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjEhhhj FhMubah}(h]jEah ](j~jeh"]h$]h&]jj)jhuh1j#hj FhMhjEhhubj)}(hhh]h)}(happly configuration for a pinh]happly configuration for a pin}(hj^GhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj[Ghhubah}(h]h ]h"]h$]h&]uh1jhjEhhhj FhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvGjjvGjjjuh1jhhhhhNhNubj)}(hX **Parameters** ``struct gpio_chip *gc`` the gpiochip owning the GPIO ``unsigned int offset`` the offset of the GPIO to apply the configuration ``unsigned long config`` the configuration to be applied **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjGh]h Parameters}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~Gubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjzGubj)}(hhh](j)}(h6``struct gpio_chip *gc`` the gpiochip owning the GPIO h](j)}(h``struct gpio_chip *gc``h]j)}(hjGh]hstruct gpio_chip *gc}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjGubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjGubj$)}(hhh]h)}(hthe gpiochip owning the GPIOh]hthe gpiochip owning the GPIO}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1j#hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(hJ``unsigned int offset`` the offset of the GPIO to apply the configuration h](j)}(h``unsigned int offset``h]j)}(hjGh]hunsigned int offset}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjGubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjGubj$)}(hhh]h)}(h1the offset of the GPIO to apply the configurationh]h1the offset of the GPIO to apply the configuration}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMhjGubah}(h]h ]h"]h$]h&]uh1j#hjGubeh}(h]h ]h"]h$]h&]uh1jhjGhMhjGubj)}(h9``unsigned long config`` the configuration to be applied h](j)}(h``unsigned long config``h]j)}(hjHh]hunsigned long config}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj Hubj$)}(hhh]h)}(hthe configuration to be appliedh]hthe configuration to be applied}(hj*HhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&HhMhj'Hubah}(h]h ]h"]h$]h&]uh1j#hj Hubeh}(h]h ]h"]h$]h&]uh1jhj&HhMhjGubeh}(h]h ]h"]h$]h&]uh1jhjzGubh)}(h **Return**h]j)}(hjLHh]hReturn}(hjNHhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJHubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjzGubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjbHhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjzGubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(gpiochip_add_pingroup_range (C function)c.gpiochip_add_pingroup_rangehNtauh1j h\hhhhNhNubj)}(hhh](j$)}(hint gpiochip_add_pingroup_range (struct gpio_chip *gc, struct pinctrl_dev *pctldev, unsigned int gpio_offset, const char *pin_group)h]j*)}(hint gpiochip_add_pingroup_range(struct gpio_chip *gc, struct pinctrl_dev *pctldev, unsigned int gpio_offset, const char *pin_group)h](j)}(hinth]hint}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjHhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjHhhhjHhMubjS)}(hgpiochip_add_pingroup_rangeh]jY)}(hgpiochip_add_pingroup_rangeh]hgpiochip_add_pingroup_range}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjHubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjHhhhjHhMubj)}(hd(struct gpio_chip *gc, struct pinctrl_dev *pctldev, unsigned int gpio_offset, const char *pin_group)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjHhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjHubjB)}(h h]h }(hjHhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjHubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjHmodnameN classnameNjj)}j]j)}j{jHsbc.gpiochip_add_pingroup_rangeasbuh1hhjHubjB)}(h h]h }(hj IhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjHubj)}(hjh]h*}(hjIhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjHubjY)}(hgch]hgc}(hj'IhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjHubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjHubj)}(hstruct pinctrl_dev *pctldevh](j0)}(hj3h]hstruct}(hj@IhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj pin mappingh]h$add a range for GPIO <-> pin mapping}(hjoJhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjlJhhubah}(h]h ]h"]h$]h&]uh1jhjHhhhjHhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjJjjJjjjuh1jhhhhhNhNubj)}(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)}(hjJh]h Parameters}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j)}(hjJh]hstruct gpio_chip *gc}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubj$)}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j#hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(h=``struct pinctrl_dev *pctldev`` the pin controller to map to h](j)}(h``struct pinctrl_dev *pctldev``h]j)}(hjJh]hstruct pinctrl_dev *pctldev}(hjJhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubj$)}(hhh]h)}(hthe pin controller to map toh]hthe pin controller to map to}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjJhMhjJubah}(h]h ]h"]h$]h&]uh1j#hjJubeh}(h]h ]h"]h$]h&]uh1jhjJhMhjJubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j)}(hj"Kh]hunsigned int gpio_offset}(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:25: ./drivers/gpio/gpiolib.chMhjKubj$)}(hhh]h)}(h6the start offset in the current gpio_chip number spaceh]h6the start offset in the current gpio_chip number space}(hj;KhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7KhMhj8Kubah}(h]h ]h"]h$]h&]uh1j#hjKubeh}(h]h ]h"]h$]h&]uh1jhj7KhMhjJubj)}(hJ``const char *pin_group`` name of the pin group inside the pin controller h](j)}(h``const char *pin_group``h]j)}(hj[Kh]hconst char *pin_group}(hj]KhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjYKubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjUKubj$)}(hhh]h)}(h/name of the pin group inside the pin controllerh]h/name of the pin group inside the pin controller}(hjtKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjpKhMhjqKubah}(h]h ]h"]h$]h&]uh1j#hjUKubeh}(h]h ]h"]h$]h&]uh1jhjpKhMhjJubeh}(h]h ]h"]h$]h&]uh1jhjJubh)}(h**Description**h]j)}(hjKh]h Description}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubh)}(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.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubh)}(h **Return**h]j)}(hjKh]hReturn}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjKubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjJubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjJubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-gpiochip_add_pin_range_with_pins (C function)"c.gpiochip_add_pin_range_with_pinshNtauh1j hhhhhNhNubj)}(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}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM0 ubjB)}(h h]h }(hjLhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjKhhhjLhM0 ubjS)}(h gpiochip_add_pin_range_with_pinsh]jY)}(h gpiochip_add_pin_range_with_pinsh]h gpiochip_add_pin_range_with_pins}(hj#LhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjLubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjKhhhjLhM0 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](j0)}(hj3h]hstruct}(hj?LhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj;LubjB)}(h h]h }(hjLLhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj;Lubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj]LhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjZLubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj_LmodnameN classnameNjj)}j]j)}j{j%Lsb"c.gpiochip_add_pin_range_with_pinsasbuh1hhj;LubjB)}(h h]h }(hj}LhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj;Lubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj;LubjY)}(hgch]hgc}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj;Lubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubj)}(hconst char *pinctl_nameh](j0)}(hjh]hconst}(hjLhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjLubjB)}(h h]h }(hjLhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjLubj)}(hcharh]hchar}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjB)}(h h]h }(hjLhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjLubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLubjY)}(h pinctl_nameh]h pinctl_name}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjLubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubj)}(hunsigned int gpio_offseth](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj MubjB)}(h h]h }(hjMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj Mubj)}(hinth]hint}(hj*MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj MubjB)}(h h]h }(hj8MhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj MubjY)}(h gpio_offseth]h gpio_offset}(hjFMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj Mubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubj)}(hunsigned int pin_offseth](j)}(hunsignedh]hunsigned}(hj_MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[MubjB)}(h h]h }(hjmMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj[Mubj)}(hinth]hint}(hj{MhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj[MubjB)}(h h]h }(hjMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj[MubjY)}(h pin_offseth]h pin_offset}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj[Mubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubj)}(hunsigned int const *pinsh](j)}(hunsignedh]hunsigned}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjB)}(h h]h }(hjMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjMubj)}(hinth]hint}(hjMhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjB)}(h h]h }(hjMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjMubj0)}(hjh]hconst}(hjMhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjMubjB)}(h h]h }(hjMhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjMubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjMubjY)}(hpinsh]hpins}(hjNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjMubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubj)}(hunsigned int npinsh](j)}(hunsignedh]hunsigned}(hj)NhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%NubjB)}(h h]h }(hj7NhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%Nubj)}(hinth]hint}(hjENhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%NubjB)}(h h]h }(hjSNhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%NubjY)}(hnpinsh]hnpins}(hjaNhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj%Nubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj7Lubeh}(h]h ]h"]h$]h&]jpjquh1jhjKhhhjLhM0 ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjKhhhjLhM0 ubah}(h]jKah ](j~jeh"]h$]h&]jj)jhuh1j#hjLhM0 hjKhhubj)}(hhh]h)}(h$add a range for GPIO <-> pin mappingh]h$add a range for GPIO <-> pin mapping}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM0 hjNhhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjLhM0 ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhhhNhNubj)}(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)}(hjNh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM4 hjNubj)}(hhh](j)}(h;``struct gpio_chip *gc`` the gpiochip to add the range for h](j)}(h``struct gpio_chip *gc``h]j)}(hjNh]hstruct gpio_chip *gc}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM1 hjNubj$)}(hhh]h)}(h!the gpiochip to add the range forh]h!the gpiochip to add the range for}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjNhM1 hjNubah}(h]h ]h"]h$]h&]uh1j#hjNubeh}(h]h ]h"]h$]h&]uh1jhjNhM1 hjNubj)}(hK``const char *pinctl_name`` the dev_name() of the pin controller to map to h](j)}(h``const char *pinctl_name``h]j)}(hjOh]hconst char *pinctl_name}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM2 hjNubj$)}(hhh]h)}(h.the dev_name() of the pin controller to map toh]h.the dev_name() of the pin controller to map to}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjOhM2 hjOubah}(h]h ]h"]h$]h&]uh1j#hjNubeh}(h]h ]h"]h$]h&]uh1jhjOhM2 hjNubj)}(hT``unsigned int gpio_offset`` the start offset in the current gpio_chip number space h](j)}(h``unsigned int gpio_offset``h]j)}(hj>Oh]hunsigned int gpio_offset}(hj@OhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj hjNubh)}(h-0 on success, or a negative errno on failure.h]h-0 on success, or a negative errno on failure.}(hjcPhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM? hjNubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j'gpiochip_remove_pin_ranges (C function)c.gpiochip_remove_pin_rangeshNtauh1j hhhhhNhNubj)}(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}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMt ubjB)}(h h]h }(hjPhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjPhhhjPhMt ubjS)}(hgpiochip_remove_pin_rangesh]jY)}(hgpiochip_remove_pin_rangesh]hgpiochip_remove_pin_ranges}(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjPubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjPhhhjPhMt ubj)}(h(struct gpio_chip *gc)h]j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjPhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjPubjB)}(h h]h }(hjPhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjPubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjPubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjPmodnameN classnameNjj)}j]j)}j{jPsbc.gpiochip_remove_pin_rangesasbuh1hhjPubjB)}(h h]h }(hj QhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjPubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjPubjY)}(hgch]hgc}(hj(QhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjPubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjPubah}(h]h ]h"]h$]h&]jpjquh1jhjPhhhjPhMt ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjPhhhjPhMt ubah}(h]jPah ](j~jeh"]h$]h&]jj)jhuh1j#hjPhMt hjPhhubj)}(hhh]h)}(h$remove all the GPIO <-> pin mappingsh]h$remove all the GPIO <-> pin mappings}(hjRQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMt hjOQhhubah}(h]h ]h"]h$]h&]uh1jhjPhhhjPhMt ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjQjjjQjjjuh1jhhhhhNhNubj)}(hR**Parameters** ``struct gpio_chip *gc`` the chip to remove all the mappings forh](h)}(h**Parameters**h]j)}(hjtQh]h Parameters}(hjvQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjrQubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMx hjnQubj)}(hhh]j)}(h@``struct gpio_chip *gc`` the chip to remove all the mappings forh](j)}(h``struct gpio_chip *gc``h]j)}(hjQh]hstruct gpio_chip *gc}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjQubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMz hjQubj$)}(hhh]h)}(h'the chip to remove all the mappings forh]h'the chip to remove all the mappings for}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMu hjQubah}(h]h ]h"]h$]h&]uh1j#hjQubeh}(h]h ]h"]h$]h&]uh1jhjQhMz hjQubah}(h]h ]h"]h$]h&]uh1jhjnQubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$gpiochip_dup_line_label (C function)c.gpiochip_dup_line_labelhNtauh1j hhhhhNhNubj)}(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}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hjQhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjQhhhjQhM ubj)}(hjh]h*}(hj RhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjQhhhjQhM ubjS)}(hgpiochip_dup_line_labelh]jY)}(hgpiochip_dup_line_labelh]hgpiochip_dup_line_label}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjRubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjQhhhjQhM ubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hj7RhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj3RubjB)}(h h]h }(hjDRhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3Rubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjURhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjRRubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjWRmodnameN classnameNjj)}j]j)}j{jRsbc.gpiochip_dup_line_labelasbuh1hhj3RubjB)}(h h]h }(hjuRhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj3Rubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj3RubjY)}(hgch]hgc}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj3Rubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj/Rubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjB)}(h h]h }(hjRhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjRubj)}(hinth]hint}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjB)}(h h]h }(hjRhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjRubjY)}(hoffseth]hoffset}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjRubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj/Rubeh}(h]h ]h"]h$]h&]jpjquh1jhjQhhhjQhM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjQhhhjQhM ubah}(h]jQah ](j~jeh"]h$]h&]jj)jhuh1j#hjQhM hjQhhubj)}(hhh]h)}(h!Get a copy of the consumer label.h]h!Get a copy of the consumer label.}(hj ShhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjShhubah}(h]h ]h"]h$]h&]uh1jhjQhhhjQhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj#Sjj#Sjjjuh1jhhhhhNhNubj)}(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)}(hj-Sh]h Parameters}(hj/ShhhNhNubah}(h]h ]h"]h$]h&]uh1jhj+Subah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj'Subj)}(hhh](j)}(h:``struct gpio_chip *gc`` GPIO chip controlling this line. h](j)}(h``struct gpio_chip *gc``h]j)}(hjLSh]hstruct gpio_chip *gc}(hjNShhhNhNubah}(h]h ]h"]h$]h&]uh1j hjJSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjFSubj$)}(hhh]h)}(h GPIO chip controlling this line.h]h GPIO chip controlling this line.}(hjeShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjaShM hjbSubah}(h]h ]h"]h$]h&]uh1j#hjFSubeh}(h]h ]h"]h$]h&]uh1jhjaShM hjCSubj)}(h5``unsigned int offset`` Hardware offset of the line. h](j)}(h``unsigned int offset``h]j)}(hjSh]hunsigned int offset}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j hjSubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjSubj$)}(hhh]h)}(hHardware offset of the line.h]hHardware offset of the line.}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM hjSubah}(h]h ]h"]h$]h&]uh1j#hjSubeh}(h]h ]h"]h$]h&]uh1jhjShM hjCSubeh}(h]h ]h"]h$]h&]uh1jhj'Subh)}(h **Return**h]j)}(hjSh]hReturn}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj'Subh)}(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 }(hjShhhNhNubj)}(h ``ENOMEM``h]hENOMEM}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1j hjSubh.}(hjShhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj'Subh)}(h**Description**h]j)}(hjSh]h Description}(hjShhhNhNubah}(h]h ]h"]h$]h&]uh1jhjSubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj'Subh)}(h'Must not be called from atomic context.h]h'Must not be called from atomic context.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj'Subeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiochip_request_own_desc (C function)c.gpiochip_request_own_deschNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hj>ThhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj:Thhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hjLThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj:ThhhjKThM ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj]ThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjZTubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj_TmodnameN classnameNjj)}j]j)}j{gpiochip_request_own_descsbc.gpiochip_request_own_descasbuh1hhj:ThhhjKThM ubjB)}(h h]h }(hj~ThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj:ThhhjKThM ubj)}(hjh]h*}(hjThhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj:ThhhjKThM ubjS)}(hgpiochip_request_own_desch]jY)}(hj{Th]hgpiochip_request_own_desc}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjTubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj:ThhhjKThM 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](j0)}(hj3h]hstruct}(hjThhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjTubjB)}(h h]h }(hjThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjTubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjTmodnameN classnameNjj)}j]jyTc.gpiochip_request_own_descasbuh1hhjTubjB)}(h h]h }(hjThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjTubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjTubjY)}(hgch]hgc}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjTubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjTubj)}(hunsigned int hwnumh](j)}(hunsignedh]hunsigned}(hj(UhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$UubjB)}(h h]h }(hj6UhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$Uubj)}(hinth]hint}(hjDUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$UubjB)}(h h]h }(hjRUhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$UubjY)}(hhwnumh]hhwnum}(hj`UhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj$Uubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjTubj)}(hconst char *labelh](j0)}(hjh]hconst}(hjyUhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjuUubjB)}(h h]h }(hjUhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjuUubj)}(hcharh]hchar}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuUubjB)}(h h]h }(hjUhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjuUubj)}(hjh]h*}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuUubjY)}(hlabelh]hlabel}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjuUubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjTubj)}(henum gpio_lookup_flags lflagsh](j0)}(henumh]henum}(hjUhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjUubjB)}(h h]h }(hjUhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjUubh)}(hhh]jY)}(hgpio_lookup_flagsh]hgpio_lookup_flags}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjUubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjUmodnameN classnameNjj)}j]jyTc.gpiochip_request_own_descasbuh1hhjUubjB)}(h h]h }(hjVhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjUubjY)}(hlflagsh]hlflags}(hj!VhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjUubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjTubj)}(henum gpiod_flags dflagsh](j0)}(hjUh]henum}(hj:VhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj6VubjB)}(h h]h }(hjGVhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj6Vubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjXVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjUVubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjZVmodnameN classnameNjj)}j]jyTc.gpiochip_request_own_descasbuh1hhj6VubjB)}(h h]h }(hjvVhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj6VubjY)}(hdflagsh]hdflags}(hjVhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj6Vubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjTubeh}(h]h ]h"]h$]h&]jpjquh1jhj:ThhhjKThM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj6ThhhjKThM ubah}(h]j1Tah ](j~jeh"]h$]h&]jj)jhuh1j#hjKThM hj3Thhubj)}(hhh]h)}(h-Allow GPIO chip to request its own descriptorh]h-Allow GPIO chip to request its own descriptor}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjVhhubah}(h]h ]h"]h$]h&]uh1jhj3ThhhjKThM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjVjjVjjjuh1jhhhhhNhNubj)}(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)}(hjVh]h Parameters}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM" hjVubj)}(hhh](j)}(h#``struct gpio_chip *gc`` GPIO chip h](j)}(h``struct gpio_chip *gc``h]j)}(hjVh]hstruct gpio_chip *gc}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjVubj$)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjWhM hjWubah}(h]h ]h"]h$]h&]uh1j#hjVubeh}(h]h ]h"]h$]h&]uh1jhjWhM hjVubj)}(hW``unsigned int hwnum`` hardware number of the GPIO for which to request the descriptor h](j)}(h``unsigned int hwnum``h]j)}(hj(Wh]hunsigned int hwnum}(hj*WhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj&Wubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj"Wubj$)}(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}(hjAWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj=WhM hj>Wubah}(h]h ]h"]h$]h&]uh1j#hj"Wubeh}(h]h ]h"]h$]h&]uh1jhj=WhM hjVubj)}(h)``const char *label`` label for the GPIO h](j)}(h``const char *label``h]j)}(hjaWh]hconst char *label}(hjcWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_Wubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM! hj[Wubj$)}(hhh]h)}(hlabel for the GPIOh]hlabel for the GPIO}(hjzWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvWhM! hjwWubah}(h]h ]h"]h$]h&]uh1j#hj[Wubeh}(h]h ]h"]h$]h&]uh1jhjvWhM! hjVubj)}(h``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 h](j)}(h!``enum gpio_lookup_flags lflags``h]j)}(hjWh]henum gpio_lookup_flags lflags}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM$ hjWubj$)}(hhh]h)}(hlookup 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_LOWh]hlookup 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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM" hjWubah}(h]h ]h"]h$]h&]uh1j#hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM$ hjVubj)}(h``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 h](j)}(h``enum gpiod_flags dflags``h]j)}(hjWh]henum gpiod_flags dflags}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjWubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM& hjWubj$)}(hhh]h)}(hydescriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drainh]hydescriptor request flags for this GPIO or 0 if default, this can be used to specify consumer semantics such as open drain}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM% hjWubah}(h]h ]h"]h$]h&]uh1j#hjWubeh}(h]h ]h"]h$]h&]uh1jhjWhM& hjVubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hjXh]h Description}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjXubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM( hjVubh)}(hX[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).h]hX[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).}(hj&XhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM' hjVubh)}(h **Return**h]j)}(hj7Xh]hReturn}(hj9XhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5Xubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM- hjVubh)}(hYA pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.h]hYA pointer to the GPIO descriptor, or an ERR_PTR()-encoded negative error code on failure.}(hjMXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM. hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiochip_free_own_desc (C function)c.gpiochip_free_own_deschNtauh1j hhhhhNhNubj)}(hhh](j$)}(h4void gpiochip_free_own_desc (struct gpio_desc *desc)h]j*)}(h3void gpiochip_free_own_desc(struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hj|XhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjxXhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMS ubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjxXhhhjXhMS ubjS)}(hgpiochip_free_own_desch]jY)}(hgpiochip_free_own_desch]hgpiochip_free_own_desc}(hjXhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjXubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjxXhhhjXhMS ubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjXhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjXubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjXubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjXhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjXubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjXmodnameN classnameNjj)}j]j)}j{jXsbc.gpiochip_free_own_descasbuh1hhjXubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjXubj)}(hjh]h*}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjXubjY)}(hdesch]hdesc}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjXubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjXubah}(h]h ]h"]h$]h&]jpjquh1jhjxXhhhjXhMS ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjtXhhhjXhMS ubah}(h]joXah ](j~jeh"]h$]h&]jj)jhuh1j#hjXhMS hjqXhhubj)}(hhh]h)}(h&Free GPIO requested by the chip driverh]h&Free GPIO requested by the chip driver}(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:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hj]hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]hhhj]hM ubjS)}(hgpiod_direction_outputh]jY)}(hgpiod_direction_outputh]hgpiod_direction_output}(hj]hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj]ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj]hhhj]hM ubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj]hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj]ubjB)}(h h]h }(hj^hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj^ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj^modnameN classnameNjj)}j]j)}j{j]sbc.gpiod_direction_outputasbuh1hhj]ubjB)}(h h]h }(hj6^hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubj)}(hjh]h*}(hjD^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjY)}(hdesch]hdesc}(hjQ^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj]ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj]ubj)}(h int valueh](j)}(hinth]hint}(hjj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjf^ubjB)}(h h]h }(hjx^hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjf^ubjY)}(hvalueh]hvalue}(hj^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjf^ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj]ubeh}(h]h ]h"]h$]h&]jpjquh1jhj]hhhj]hM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj]hhhj]hM ubah}(h]j]ah ](j~jeh"]h$]h&]jj)jhuh1j#hj]hM hj]hhubj)}(hhh]h)}(h set the GPIO direction to outputh]h set the GPIO direction to output}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj^hhubah}(h]h ]h"]h$]h&]uh1jhj]hhhj]hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj^jj^jjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./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&]uh1j#hj^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:25: ./drivers/gpio/gpiolib.chM hj$_ubj$)}(hhh]h)}(h initial output value of the GPIOh]h initial output value of the GPIO}(hjC_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?_hM hj@_ubah}(h]h ]h"]h$]h&]uh1j#hj$_ubeh}(h]h ]h"]h$]h&]uh1jhj?_hM hj^ubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hje_h]h Description}(hjg_hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjc_ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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{_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj^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:25: ./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.}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_enable_hw_timestamp_ns (C function)c.gpiod_enable_hw_timestamp_nshNtauh1j hhhhhNhNubj)}(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}(hj_hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hj_hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj_hhhj_hM ubjS)}(hgpiod_enable_hw_timestamp_nsh]jY)}(hgpiod_enable_hw_timestamp_nsh]hgpiod_enable_hw_timestamp_ns}(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj_ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj_hhhj_hM ubj)}(h-(struct gpio_desc *desc, unsigned long flags)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj`hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj `ubjB)}(h h]h }(hj`hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj `ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj,`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj)`ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj.`modnameN classnameNjj)}j]j)}j{j_sbc.gpiod_enable_hw_timestamp_nsasbuh1hhj `ubjB)}(h h]h }(hjL`hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj `ubj)}(hjh]h*}(hjZ`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj `ubjY)}(hdesch]hdesc}(hjg`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj `ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj`ubj)}(hunsigned long flagsh](j)}(hunsignedh]hunsigned}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|`ubjB)}(h h]h }(hj`hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj|`ubj)}(hlongh]hlong}(hj`hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj|`ubjB)}(h h]h }(hj`hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj|`ubjY)}(hflagsh]hflags}(hj`hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj|`ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj`ubeh}(h]h ]h"]h$]h&]jpjquh1jhj_hhhj_hM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj_hhhj_hM ubah}(h]j_ah ](j~jeh"]h$]h&]jj)jhuh1j#hj_hM hj_hhubj)}(hhh]h)}(h)Enable hardware timestamp in nanoseconds.h]h)Enable hardware timestamp in nanoseconds.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj`hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhj_hM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj`jj`jjjuh1jhhhhhNhNubj)}(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)}(hjah]h Parameters}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhjaubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj`ubj)}(hhh](j)}(h+``struct gpio_desc *desc`` GPIO to enable. h](j)}(h``struct gpio_desc *desc``h]j)}(hj#ah]hstruct gpio_desc *desc}(hj%ahhhNhNubah}(h]h ]h"]h$]h&]uh1j hj!aubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjaubj$)}(hhh]h)}(hGPIO to enable.h]hGPIO to enable.}(hjjmodnameN classnameNjj)}j]j)}j{jjsbc.gpiod_toggle_active_lowasbuh1hhjjubjB)}(h h]h }(hj\jhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjjubj)}(hjh]h*}(hjjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjY)}(hdesch]hdesc}(hjwjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjjubah}(h]h ]h"]h$]h&]jpjquh1jhjihhhjihM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjihhhjihM ubah}(h]jiah ](j~jeh"]h$]h&]jj)jhuh1j#hjihM hjihhubj)}(hhh]h)}(h*toggle whether a GPIO is active-low or noth]h*toggle 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:25: ./drivers/gpio/gpiolib.chM hjjhhubah}(h]h ]h"]h$]h&]uh1jhjihhhjihM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjjjuh1jhhhhhNhNubj)}(hJ**Parameters** ``struct gpio_desc *desc`` the gpio descriptor to changeh](h)}(h**Parameters**h]j)}(hjjh]h Parameters}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjjubj)}(hhh]j)}(h8``struct gpio_desc *desc`` the gpio descriptor to changeh](j)}(h``struct gpio_desc *desc``h]j)}(hjjh]hstruct gpio_desc *desc}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjjubj$)}(hhh]h)}(hthe gpio descriptor to changeh]hthe gpio descriptor to change}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjjubah}(h]h ]h"]h$]h&]uh1j#hjjubeh}(h]h ]h"]h$]h&]uh1jhjjhM hjjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_get_raw_value (C function)c.gpiod_get_raw_valuehNtauh1j hhhhhNhNubj)}(hhh](j$)}(h6int gpiod_get_raw_value (const struct gpio_desc *desc)h]j*)}(h5int gpiod_get_raw_value(const struct gpio_desc *desc)h](j)}(hinth]hint}(hjqubah}(h]h ]h"]h$]h&]uh1j#hj"qubeh}(h]h ]h"]h$]h&]uh1jhj=qhM hjpubj)}(h^``struct gpio_array *array_info`` information on applicability of fast bitmap processing path h](j)}(h!``struct gpio_array *array_info``h]j)}(hjaqh]hstruct gpio_array *array_info}(hjcqhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj_qubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hj[qubj$)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjzqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjvqhM hjwqubah}(h]h ]h"]h$]h&]uh1j#hj[qubeh}(h]h ]h"]h$]h&]uh1jhjvqhM hjpubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j)}(hjqh]hunsigned long *value_bitmap}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjqubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjqubj$)}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM hjqubah}(h]h ]h"]h$]h&]uh1j#hjqubeh}(h]h ]h"]h$]h&]uh1jhjqhM hjpubeh}(h]h ]h"]h$]h&]uh1jhjpubh)}(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:25: ./drivers/gpio/gpiolib.chM hjpubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjpubh)}(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.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjpubh)}(h **Return**h]j)}(hj rh]hReturn}(hj rhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj rubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjpubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hj!rhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjpubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"gpiod_get_array_value (C function)c.gpiod_get_array_valuehNtauh1j hhhhhNhNubj)}(hhh](j$)}(hint gpiod_get_array_value (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(unsigned int array_size, struct gpio_desc **desc_array, struct gpio_array *array_info, unsigned long *value_bitmap)h](j)}(hinth]hint}(hjPrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjLrhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hj_rhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjLrhhhj^rhM ubjS)}(hgpiod_get_array_valueh]jY)}(hgpiod_get_array_valueh]hgpiod_get_array_value}(hjqrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjmrubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjLrhhhj^rhM ubj)}(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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjB)}(h h]h }(hjrhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjrubj)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjB)}(h h]h }(hjrhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjrubjY)}(h array_sizeh]h array_size}(hjrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjrubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjrubj)}(hstruct gpio_desc **desc_arrayh](j0)}(hj3h]hstruct}(hjrhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjrubjB)}(h h]h }(hjrhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjrubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjrhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjrmodnameN classnameNjj)}j]j)}j{jsrsbc.gpiod_get_array_valueasbuh1hhjrubjB)}(h h]h }(hjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjrubj)}(hjh]h*}(hj*shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubj)}(hjh]h*}(hj7shhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjrubjY)}(h desc_arrayCh]h desc_array}(hjDshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjrubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjrubj)}(hstruct gpio_array *array_infoh](j0)}(hj3h]hstruct}(hj]shhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjYsubjB)}(h h]h }(hjjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjYsubh)}(hhh]jY)}(h gpio_arrayh]h gpio_array}(hj{shhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjxsubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj}smodnameN classnameNjj)}j]jsc.gpiod_get_array_valueasbuh1hhjYsubjB)}(h h]h }(hjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjYsubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjYsubjY)}(h array_infoh]h array_info}(hjshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjYsubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjrubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjB)}(h h]h }(hjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjsubj)}(hlongh]hlong}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjB)}(h h]h }(hjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjsubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjY)}(h value_bitmaph]h value_bitmap}(hjthhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjsubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjrubeh}(h]h ]h"]h$]h&]jpjquh1jhjLrhhhj^rhM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjHrhhhj^rhM ubah}(h]jCrah ](j~jeh"]h$]h&]jj)jhuh1j#hj^rhM hjErhhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read values from an array of GPIOs}(hjuubah}(h]h ]h"]h$]h&]uh1j#hj"uubeh}(h]h ]h"]h$]h&]uh1jhj=uhM hjttubeh}(h]h ]h"]h$]h&]uh1jhjXtubh)}(h**Description**h]j)}(hjcuh]h Description}(hjeuhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjauubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjXtubh)}(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.}(hjyuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjXtubh)}(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.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjXtubh)}(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:25: ./drivers/gpio/gpiolib.chM hjXtubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjXtubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j gpiod_set_raw_value (C function)c.gpiod_set_raw_valuehNtauh1j hhhhhNhNubj)}(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}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjuhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjuhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjuhhhjuhMubjS)}(hgpiod_set_raw_valueh]jY)}(hgpiod_set_raw_valueh]hgpiod_set_raw_value}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjuubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjuhhhjuhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjvhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjvubjB)}(h h]h }(hj(vhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjvubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj9vhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj6vubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj;vmodnameN classnameNjj)}j]j)}j{jvsbc.gpiod_set_raw_valueasbuh1hhjvubjB)}(h h]h }(hjYvhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjvubj)}(hjh]h*}(hjgvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjY)}(hdesch]hdesc}(hjtvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjvubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjvubj)}(h int valueh](j)}(hinth]hint}(hjvhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjvubjB)}(h h]h }(hjvhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjvubjY)}(hvalueh]hvalue}(hjvhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjvubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjvubeh}(h]h ]h"]h$]h&]jpjquh1jhjuhhhjuhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjuhhhjuhMubah}(h]juah ](j~jeh"]h$]h&]jj)jhuh1j#hjuhMhjuhhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvhhubah}(h]h ]h"]h$]h&]uh1jhjuhhhjuhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jhhhhhNhNubj)}(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)}(hjvh]h Parameters}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjvubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned h](j)}(h``struct gpio_desc *desc``h]j)}(hjwh]hstruct gpio_desc *desc}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjwubj$)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hj-whhhNhNubah}(h]h ]h"]h$]h&]uh1hhj)whMhj*wubah}(h]h ]h"]h$]h&]uh1j#hjwubeh}(h]h ]h"]h$]h&]uh1jhj)whMhj wubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j)}(hjMwh]h int value}(hjOwhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjKwubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjGwubj$)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjfwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjbwhMhjcwubah}(h]h ]h"]h$]h&]uh1j#hjGwubeh}(h]h ]h"]h$]h&]uh1jhjbwhMhj wubeh}(h]h ]h"]h$]h&]uh1jhjvubh)}(h**Description**h]j)}(hjwh]h Description}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubh)}(h **Return**h]j)}(hjwh]hReturn}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjwubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjvubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_set_value (C function)c.gpiod_set_valuehNtauh1j hhhhhNhNubj)}(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}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjwhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjxhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjwhhhjxhMubjS)}(hgpiod_set_valueh]jY)}(hgpiod_set_valueh]hgpiod_set_value}(hj$xhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj xubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjwhhhjxhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj@xhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjh]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:25: ./drivers/gpio/gpiolib.chM|hj8ubj$)}(hhh]h)}(h gpio to set the consumer name onh]h gpio to set the consumer name on}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjShM|hjTubah}(h]h ]h"]h$]h&]uh1j#hj8ubeh}(h]h ]h"]h$]h&]uh1jhjShM|hj5ubj)}(h+``const char *name`` the new consumer name h](j)}(h``const char *name``h]j)}(hjwh]hconst char *name}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM}hjqubj$)}(hhh]h)}(hthe new consumer nameh]hthe new consumer name}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM}hjubah}(h]h ]h"]h$]h&]uh1j#hjqubeh}(h]h ]h"]h$]h&]uh1jhjhM}hj5ubeh}(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:25: ./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:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_to_irq (C function)c.gpiod_to_irqhNtauh1j hhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(h gpiod_to_irqh]jY)}(h gpiod_to_irqh]h gpiod_to_irq}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j0)}(hjh]hconst}(hj4hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj0ubjB)}(h h]h }(hjAhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0ubj0)}(hj3h]hstruct}(hjOhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj0ubjB)}(h h]h }(hj\hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjomodnameN classnameNjj)}j]j)}j{jsbc.gpiod_to_irqasbuh1hhj0ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj0ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj0ubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj0ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj,ubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(h&return the IRQ corresponding to a GPIOh]h&return the IRQ corresponding to a GPIO}(hj҅hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjυhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhj ubj$)}(hhh]h)}(h3gpio whose IRQ will be returned (already requested)h]h3gpio whose IRQ will be returned (already requested)}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj(hMhj)ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj(hMhj ubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Return**h]j)}(hjNh]hReturn}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjLubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!gpiochip_lock_as_irq (C function)c.gpiochip_lock_as_irqhNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hgpiochip_lock_as_irqh]jY)}(hgpiochip_lock_as_irqh]hgpiochip_lock_as_irq}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjІhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj̆ubjB)}(h h]h }(hj݆hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj̆ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.gpiochip_lock_as_irqasbuh1hhj̆ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj̆ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̆ubjY)}(hgch]hgc}(hj)hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj̆ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjȆubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjB)}(h h]h }(hjPhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj>ubj)}(hinth]hint}(hj^hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj>ubjB)}(h h]h }(hjlhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj>ubjY)}(hoffseth]hoffset}(hjzhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj>ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjȆubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(hlock a GPIO to be used as IRQh]hlock a GPIO to be used as IRQ}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhj߇ubj$)}(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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hj߇ubeh}(h]h ]h"]h$]h&]uh1jhjhMhj܇ubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hj7hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj3hMhj4ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj3hMhj܇ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjYh]h Description}(hj[hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjWubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjh]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj~ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiochip_unlock_as_irq (C function)c.gpiochip_unlock_as_irqhNtauh1j hhhhhNhNubj)}(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}(hjňhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjԈhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjӈhMubjS)}(hgpiochip_unlock_as_irqh]jY)}(hgpiochip_unlock_as_irqh]hgpiochip_unlock_as_irq}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjӈhMubj)}(h+(struct gpio_chip *gc, unsigned int offset)h](j)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj"modnameN classnameNjj)}j]j)}j{jsbc.gpiochip_unlock_as_irqasbuh1hhjubjB)}(h h]h }(hj@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hgch]hgc}(hj[hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned int offseth](j)}(hunsignedh]hunsigned}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjpubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjpubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjpubjY)}(hoffseth]hoffset}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjpubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjӈhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjӈhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjӈhMhjhhubj)}(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:25: ./drivers/gpio/gpiolib.chMhjӉhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjӈhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h$the chip the GPIO to lock belongs toh]h$the chip the GPIO to lock belongs to}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj,hMhj-ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj,hMhjubj)}(h>``unsigned int offset`` the offset of the GPIO to lock as IRQ h](j)}(h``unsigned int offset``h]j)}(hjPh]hunsigned int offset}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjNubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjJubj$)}(hhh]h)}(h%the offset of the GPIO to lock as IRQh]h%the offset of the GPIO to lock as IRQ}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hhjehMhjfubah}(h]h ]h"]h$]h&]uh1j#hjJubeh}(h]h ]h"]h$]h&]uh1jhjehMhjubeh}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_get_raw_value_cansleep (C function)c.gpiod_get_raw_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjЊhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj̊hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM^ubjB)}(h h]h }(hjߊhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj̊hhhjފhM^ubjS)}(hgpiod_get_raw_value_cansleeph]jY)}(hgpiod_get_raw_value_cansleeph]hgpiod_get_raw_value_cansleep}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj̊hhhjފhM^ubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j0)}(hjh]hconst}(hj hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj ubj0)}(hj3h]hstruct}(hj(hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj ubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjHmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_get_raw_value_cansleepasbuh1hhj ubjB)}(h h]h }(hjfhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhj̊hhhjފhM^ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjȊhhhjފhM^ubah}(h]jÊah ](j~jeh"]h$]h&]jj)jhuh1j#hjފhM^hjŊhhubj)}(hhh]h)}(hreturn a gpio's raw valueh]hreturn a gpio’s raw value}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM^hjhhubah}(h]h ]h"]h$]h&]uh1jhjŊhhhjފhM^ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjËjjËjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMbhjNjubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned 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:25: ./drivers/gpio/gpiolib.chM_hjubj$)}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM_hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM_hjubah}(h]h ]h"]h$]h&]uh1jhjNjubh)}(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:25: ./drivers/gpio/gpiolib.chMahjNjubh)}(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:25: ./drivers/gpio/gpiolib.chMahjNjubh)}(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:25: ./drivers/gpio/gpiolib.chMdhjNjubh)}(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.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMdhjNjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_value_cansleep (C function)c.gpiod_get_value_cansleephNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMpubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMpubjS)}(hgpiod_get_value_cansleeph]jY)}(hgpiod_get_value_cansleeph]hgpiod_get_value_cansleep}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMpubj)}(h(const struct gpio_desc *desc)h]j)}(hconst struct gpio_desc *desch](j0)}(hjh]hconst}(hjЌhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hǰubjB)}(h h]h }(hj݌hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhǰubj0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hǰubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhǰubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj modnameN classnameNjj)}j]j)}j{jsbc.gpiod_get_value_cansleepasbuh1hhǰubjB)}(h h]h }(hj)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhǰubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhǰubjY)}(hdesch]hdesc}(hjDhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhǰubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjȌubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMpubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMpubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMphjhhubj)}(hhh]h)}(hreturn a gpio's valueh]hreturn a gpio’s value}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMphjkhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMpubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMthjubj)}(hhh]j)}(hC``const struct gpio_desc *desc`` gpio whose value will be returned 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:25: ./drivers/gpio/gpiolib.chMqhjubj$)}(hhh]h)}(h!gpio whose value will be returnedh]h!gpio whose value will be returned}(hjȍhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjčhMqhjōubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjčhMqhjubah}(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:25: ./drivers/gpio/gpiolib.chMshjubh)}(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:25: ./drivers/gpio/gpiolib.chMshjubh)}(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:25: ./drivers/gpio/gpiolib.chMvhjubh)}(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:25: ./drivers/gpio/gpiolib.chMvhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j/gpiod_get_raw_array_value_cansleep (C function)$c.gpiod_get_raw_array_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjehhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjRhhhjdhMubjS)}(h"gpiod_get_raw_array_value_cansleeph]jY)}(h"gpiod_get_raw_array_value_cansleeph]h"gpiod_get_raw_array_value_cansleep}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjsubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjRhhhjdhMubj)}(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&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(h array_sizeh]h array_size}(hjˎhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc **desc_arrayh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jysb$c.gpiod_get_raw_array_value_cansleepasbuh1hhjubjB)}(h h]h }(hj"hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(h desc_arrayh]h desc_array}(hjJhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_array *array_infoh](j0)}(hj3h]hstruct}(hjchhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj_ubjB)}(h h]h }(hjphhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj_ubh)}(hhh]jY)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j$c.gpiod_get_raw_array_value_cansleepasbuh1hhj_ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjY)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj_ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjӏhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjϏubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjϏubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϏubjY)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjϏubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjRhhhjdhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjNhhhjdhMubah}(h]jIah ](j~jeh"]h$]h&]jj)jhuh1j#hjdhMhjKhhubj)}(hhh]h)}(h&read raw values from an array of GPIOsh]h&read raw values from an array of GPIOs}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj?hhubah}(h]h ]h"]h$]h&]uh1jhjKhhhjdhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjZjjZjjjuh1jhhhhhNhNubj)}(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)}(hjdh]h Parameters}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjbubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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:25: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hj}ubeh}(h]h ]h"]h$]h&]uh1jhjhMhjzubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(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&]uh1hhjѐhMhjҐubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjѐhMhjzubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(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&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjzubj)}(h@``unsigned long *value_bitmap`` bitmap to store the read values h](j)}(h``unsigned long *value_bitmap``h]j)}(hj.h]hunsigned long *value_bitmap}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj(ubj$)}(hhh]h)}(hbitmap to store the read valuesh]hbitmap to store the read values}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1j#hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjzubeh}(h]h ]h"]h$]h&]uh1jhj^ubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj^ubh)}(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:25: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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:25: ./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:25: ./drivers/gpio/gpiolib.chMhj^ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+gpiod_get_array_value_cansleep (C function) c.gpiod_get_array_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hgpiod_get_array_value_cansleeph]jY)}(hgpiod_get_array_value_cansleeph]hgpiod_get_array_value_cansleep}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(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&]uh1jhjubjB)}(h h]h }(hj/hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hj=hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjKhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(h array_sizeh]h array_size}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc **desc_arrayh](j0)}(hj3h]hstruct}(hjrhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjnubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjnubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsb c.gpiod_get_array_value_cansleepasbuh1hhjnubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubj)}(hjh]h*}(hj˒hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjY)}(h desc_arrayh]h desc_array}(hjؒhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_array *array_infoh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j c.gpiod_get_array_value_cansleepasbuh1hhjubjB)}(h h]h }(hj-hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj;hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(h array_infoh]h array_info}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjB)}(h h]h }(hjohhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubj)}(hlongh]hlong}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj]ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj]ubjY)}(h value_bitmaph]h value_bitmap}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj]ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjܑhhhjhMubah}(h]jבah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjّhhubj)}(hhh]h)}(h"read values from an array of GPIOsh]h"read values from an array of GPIOs}(hjГhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj͓hhubah}(h]h ]h"]h$]h&]uh1jhjّhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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:25: ./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}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj&hMhj'ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj&hMhjubj)}(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)}(hjJh]hstruct gpio_desc **desc_array}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjHubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjDubj$)}(hhh]h)}(h3array of GPIO descriptors whose values will be readh]h3array of GPIO descriptors whose values will be read}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1hhj_hMhj`ubah}(h]h ]h"]h$]h&]uh1j#hjDubeh}(h]h ]h"]h$]h&]uh1jhj_hMhjubj)}(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:25: ./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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hj}ubeh}(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:25: ./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&]uh1j#hjubeh}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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:25: ./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:25: ./drivers/gpio/gpiolib.chMhjubh)}(h+0 on success, or negative errno on failure.h]h+0 on success, or negative errno on failure.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j)gpiod_set_raw_value_cansleep (C function)c.gpiod_set_raw_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjnhhhjhMubjS)}(hgpiod_set_raw_value_cansleeph]jY)}(hgpiod_set_raw_value_cansleeph]hgpiod_set_raw_value_cansleep}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjnhhhjhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj͕hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjʕubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjϕmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_set_raw_value_cansleepasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h int valueh](j)}(hinth]hint}(hj!hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hj/hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hvalueh]hvalue}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjnhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjjhhhjhMubah}(h]jeah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjghhubj)}(hhh]h)}(hassign a gpio's raw valueh]hassign a gpio’s raw value}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjdhhubah}(h]h ]h"]h$]h&]uh1jhjghhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj)}(hhh](j)}(h=``struct gpio_desc *desc`` gpio whose value will be assigned 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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h``int value`` value to assign h](j)}(h ``int value``h]j)}(hjh]h int value}(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:25: ./drivers/gpio/gpiolib.chMhjۖubj$)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjۖubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hjRh]hReturn}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1jhjPubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(h/0 on success, negative error number on failure.h]h/0 on success, negative error number on failure.}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_set_value_cansleep (C function)c.gpiod_set_value_cansleephNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hgpiod_set_value_cansleeph]jY)}(hgpiod_set_value_cansleeph]hgpiod_set_value_cansleep}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h#(struct gpio_desc *desc, int value)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjԗhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjЗubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjЗubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_set_value_cansleepasbuh1hhjЗubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjЗubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjЗubjY)}(hdesch]hdesc}(hj-hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjЗubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj̗ubj)}(h int valueh](j)}(hinth]hint}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjBubjB)}(h h]h }(hjThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjBubjY)}(hvalueh]hvalue}(hjbhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjBubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj̗ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(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:25: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMhjǘubj$)}(hhh]h)}(h!gpio whose value will be assignedh]h!gpio whose value will be assigned}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjǘubeh}(h]h ]h"]h$]h&]uh1jhjhMhjĘubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(hvalue to assignh]hvalue to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjĘubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjAh]h Description}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhj?ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(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}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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.}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j/gpiod_set_raw_array_value_cansleep (C function)$c.gpiod_set_raw_array_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj˙hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjʙhMubjS)}(h"gpiod_set_raw_array_value_cansleeph]jY)}(h"gpiod_set_raw_array_value_cansleeph]h"gpiod_set_raw_array_value_cansleep}(hjݙhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjٙubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjʙ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&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hj#hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(h array_sizeh]h array_size}(hj1hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc **desc_arrayh](j0)}(hj3h]hstruct}(hjJhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjFubjB)}(h h]h }(hjWhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjjmodnameN classnameNjj)}j]j)}j{jߙsb$c.gpiod_set_raw_array_value_cansleepasbuh1hhjFubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFubjY)}(h desc_arrayh]h desc_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjFubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_array *array_infoh](j0)}(hj3h]hstruct}(hjɚhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjŚubjB)}(h h]h }(hj֚hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjŚubh)}(hhh]jY)}(h gpio_arrayh]h gpio_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j$c.gpiod_set_raw_array_value_cansleepasbuh1hhjŚubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjŚubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjŚubjY)}(h array_infoh]h array_info}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjŚubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hj9hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjB)}(h h]h }(hjGhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5ubj)}(hlongh]hlong}(hjUhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjB)}(h h]h }(hjchhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5ubj)}(hjh]h*}(hjqhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjY)}(h value_bitmaph]h value_bitmap}(hj~hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj5ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjʙhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjʙhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjʙhMhjhhubj)}(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:25: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjʙhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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:25: ./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&]uh1j#hjubeh}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(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&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjubj)}(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 hjYubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjUubj$)}(hhh]h)}(h;information on applicability of fast bitmap processing pathh]h;information on applicability of fast bitmap processing path}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMhjqubah}(h]h ]h"]h$]h&]uh1j#hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(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:25: ./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:25: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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:25: ./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:25: ./drivers/gpio/gpiolib.chMhjěubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j+gpiod_set_array_value_cansleep (C function) c.gpiod_set_array_value_cansleephNtauh1j hhhhhNhNubj)}(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}(hjJhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjFhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjYhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjFhhhjXhMubjS)}(hgpiod_set_array_value_cansleeph]jY)}(hgpiod_set_array_value_cansleeph]hgpiod_set_array_value_cansleep}(hjkhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjgubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjFhhhjXhMubj)}(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&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(h array_sizeh]h array_size}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc **desc_arrayh](j0)}(hj3h]hstruct}(hj؝hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjԝubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjԝubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jmsb c.gpiod_set_array_value_cansleepasbuh1hhjԝubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjԝubj)}(hjh]h*}(hj$hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԝubj)}(hjh]h*}(hj1hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjԝubjY)}(h desc_arrayh]h desc_array}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjԝubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_array *array_infoh](j0)}(hj3h]hstruct}(hjWhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjSubjB)}(h h]h }(hjdhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjSubh)}(hhh]jY)}(h gpio_arrayh]h gpio_array}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjrubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjwmodnameN classnameNjj)}j]j c.gpiod_set_array_value_cansleepasbuh1hhjSubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjSubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjSubjY)}(h array_infoh]h array_info}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjSubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned long *value_bitmaph](j)}(hunsignedh]hunsigned}(hjǞhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÞubjB)}(h h]h }(hj՞hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjÞubj)}(hlongh]hlong}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÞubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjÞubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjÞubjY)}(h value_bitmaph]h value_bitmap}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjÞubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjFhhhjXhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjBhhhjXhMubah}(h]j=ah ](j~jeh"]h$]h&]jj)jhuh1j#hjXhMhj?hhubj)}(hhh]h)}(h"assign values to an array of GPIOsh]h"assign values to an array of GPIOs}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj3hhubah}(h]h ]h"]h$]h&]uh1jhj?hhhjXhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhhhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjRubj)}(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)}(hjwh]hunsigned int array_size}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjqubj$)}(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&]uh1j#hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(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&]uh1hhjşhMhjƟubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjşhMhjnubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjnubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(hbitmap of values to assignh]hbitmap of values to assign}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMhj8ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMhjnubeh}(h]h ]h"]h$]h&]uh1jhjRubh)}(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:25: ./drivers/gpio/gpiolib.chM hjRubh)}(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.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjRubh)}(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:25: ./drivers/gpio/gpiolib.chM"hjRubh)}(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:25: ./drivers/gpio/gpiolib.chM$hjRubh)}(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:25: ./drivers/gpio/gpiolib.chM%hjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#gpiod_add_lookup_table (C function)c.gpiod_add_lookup_tablehNtauh1j hhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chM>ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjԠhhhjhM>ubjS)}(hgpiod_add_lookup_tableh]jY)}(hgpiod_add_lookup_tableh]hgpiod_add_lookup_table}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjԠhhhjhM>ubj)}(h"(struct gpiod_lookup_table *table)h]j)}(h struct gpiod_lookup_table *tableh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj"hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hj3hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj0ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj5modnameN classnameNjj)}j]j)}j{jsbc.gpiod_add_lookup_tableasbuh1hhjubjB)}(h h]h }(hjShhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjahhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(htableh]htable}(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj ubah}(h]h ]h"]h$]h&]jpjquh1jhjԠhhhjhM>ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjРhhhjhM>ubah}(h]jˠah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM>hj͠hhubj)}(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:25: ./drivers/gpio/gpiolib.chM>hjhhubah}(h]h ]h"]h$]h&]uh1jhj͠hhhjhM>ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(hU**Parameters** ``struct gpiod_lookup_table *table`` table of consumers to registerh](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:25: ./drivers/gpio/gpiolib.chMBhjubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMDhjӡubj$)}(hhh]h)}(htable of consumers to registerh]htable of consumers to register}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM?hjubah}(h]h ]h"]h$]h&]uh1j#hjӡubeh}(h]h ]h"]h$]h&]uh1jhjhMDhjСubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j&gpiod_remove_lookup_table (C function)c.gpiod_remove_lookup_tablehNtauh1j hhhhhNhNubj)}(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}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMHubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/hhhjAhMHubjS)}(hgpiod_remove_lookup_tableh]jY)}(hgpiod_remove_lookup_tableh]hgpiod_remove_lookup_table}(hjThhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjPubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj/hhhjAhMHubj)}(h"(struct gpiod_lookup_table *table)h]j)}(h struct gpiod_lookup_table *tableh](j0)}(hj3h]hstruct}(hjphhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjlubjB)}(h h]h }(hj}hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjlubh)}(hhh]jY)}(hgpiod_lookup_tableh]hgpiod_lookup_table}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jVsbc.gpiod_remove_lookup_tableasbuh1hhjlubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjlubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlubjY)}(htableh]htable}(hjɢhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjlubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjhubah}(h]h ]h"]h$]h&]jpjquh1jhj/hhhjAhMHubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj+hhhjAhMHubah}(h]j&ah ](j~jeh"]h$]h&]jj)jhuh1j#hjAhMHhj(hhubj)}(hhh]h)}(h unregister GPIO device consumersh]h unregister GPIO device consumers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMHhjhhubah}(h]h ]h"]h$]h&]uh1jhj(hhhjAhMHubeh}(h]h ](jfunctioneh"]h$]h&]jjjj jj jjjuh1jhhhhhNhNubj)}(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:25: ./drivers/gpio/gpiolib.chMLhjubj)}(hhh]j)}(hE``struct gpiod_lookup_table *table`` table of consumers to unregisterh](j)}(h$``struct gpiod_lookup_table *table``h]j)}(hj4h]h struct gpiod_lookup_table *table}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj2ubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMNhj.ubj$)}(hhh]h)}(h table of consumers to unregisterh]h table of consumers to unregister}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMIhjJubah}(h]h ]h"]h$]h&]uh1j#hj.ubeh}(h]h ]h"]h$]h&]uh1jhjIhMNhj+ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_add_hogs (C function)c.gpiod_add_hogshNtauh1j hhhhhNhNubj)}(hhh](j$)}(h,void gpiod_add_hogs (struct gpiod_hog *hogs)h]j*)}(h+void gpiod_add_hogs(struct gpiod_hog *hogs)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMXubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMXubjS)}(hgpiod_add_hogsh]jY)}(hgpiod_add_hogsh]hgpiod_add_hogs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMXubj)}(h(struct gpiod_hog *hogs)h]j)}(hstruct gpiod_hog *hogsh](j0)}(hj3h]hstruct}(hjˣhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjǣubjB)}(h h]h }(hjأhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjǣubh)}(hhh]jY)}(h gpiod_hogh]h gpiod_hog}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_add_hogsasbuh1hhjǣubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjǣubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjǣubjY)}(hhogsh]hhogs}(hj$hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjǣubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjãubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMXubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMXubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMXhjhhubj)}(hhh]h)}(h-register a set of GPIO hogs from machine codeh]h-register a set of GPIO hogs from machine code}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMXhjKhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMXubeh}(h]h ](jfunctioneh"]h$]h&]jjjjfjjfjjjuh1jhhhhhNhNubj)}(hh**Parameters** ``struct gpiod_hog *hogs`` table of gpio hog entries with a zeroed sentinel at the endh](h)}(h**Parameters**h]j)}(hjph]h Parameters}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjnubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM\hjjubj)}(hhh]j)}(hV``struct gpiod_hog *hogs`` table of gpio hog entries with a zeroed sentinel at the endh](j)}(h``struct gpiod_hog *hogs``h]j)}(hjh]hstruct gpiod_hog *hogs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM^hjubj$)}(hhh]h)}(h;table of gpio hog entries with a zeroed sentinel at the endh]h;table of gpio hog entries with a zeroed sentinel at the end}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMYhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM^hjubah}(h]h ]h"]h$]h&]uh1jhjjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j#fwnode_gpiod_get_index (C function)c.fwnode_gpiod_get_indexhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMbubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMbubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj modnameN classnameNjj)}j]j)}j{fwnode_gpiod_get_indexsbc.fwnode_gpiod_get_indexasbuh1hhjhhhjhMbubjB)}(h h]h }(hj)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMbubj)}(hjh]h*}(hj7hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMbubjS)}(hfwnode_gpiod_get_indexh]jY)}(hj&h]hfwnode_gpiod_get_index}(hjHhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjDubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMbubj)}(hh(struct fwnode_handle *fwnode, const char *con_id, int index, enum gpiod_flags flags, const char *label)h](j)}(hstruct fwnode_handle *fwnodeh](j0)}(hj3h]hstruct}(hjchhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj_ubjB)}(h h]h }(hjphhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj_ubh)}(hhh]jY)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj~ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j$c.fwnode_gpiod_get_indexasbuh1hhj_ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj_ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj_ubjY)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj_ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj[ubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjӥhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjϥubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjϥubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϥubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjϥubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjϥubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjϥubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj[ubj)}(h int indexh](j)}(hinth]hint}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj,ubjB)}(h h]h }(hj>hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj,ubjY)}(hindexh]hindex}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj,ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj[ubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjehhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjaubjB)}(h h]h }(hjrhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjaubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j$c.fwnode_gpiod_get_indexasbuh1hhjaubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjaubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj[ubj)}(hconst char *labelh](j0)}(hjh]hconst}(hjȦhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjĦubjB)}(h h]h }(hjզhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjĦubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĦubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjĦubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjĦubjY)}(hlabelh]hlabel}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjĦubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj[ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMbubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMbubah}(h]jܤah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMbhjޤhhubj)}(hhh]h)}(h obtain a GPIO from firmware nodeh]h obtain a GPIO from firmware node}(hj6hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMbhj3hhubah}(h]h ]h"]h$]h&]uh1jhjޤhhhjhMbubeh}(h]h ](jfunctioneh"]h$]h&]jjjjNjjNjjjuh1jhhhhhNhNubj)}(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)}(hjXh]h Parameters}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMfhjRubj)}(hhh](j)}(h=``struct fwnode_handle *fwnode`` handle of the firmware node h](j)}(h ``struct fwnode_handle *fwnode``h]j)}(hjwh]hstruct fwnode_handle *fwnode}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjuubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMchjqubj$)}(hhh]h)}(hhandle of the firmware nodeh]hhandle of the firmware node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMchjubah}(h]h ]h"]h$]h&]uh1j#hjqubeh}(h]h ]h"]h$]h&]uh1jhjhMchjnubj)}(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:25: ./drivers/gpio/gpiolib.chMdhjubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjɧhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjŧhMdhjƧubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjŧhMdhjnubj)}(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:25: ./drivers/gpio/gpiolib.chMehjubj$)}(hhh]h)}(h,index of the GPIO to obtain for the consumerh]h,index of the GPIO to obtain for the consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMehjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMehjnubj)}(h5``enum gpiod_flags flags`` GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j)}(hj"h]henum gpiod_flags flags}(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:25: ./drivers/gpio/gpiolib.chMfhjubj$)}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj7hMfhj8ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj7hMfhjnubj)}(h<``const char *label`` label to attach to the requested GPIO h](j)}(h``const char *label``h]j)}(hj[h]hconst char *label}(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:25: ./drivers/gpio/gpiolib.chMghjUubj$)}(hhh]h)}(h%label to attach to the requested GPIOh]h%label to attach to the requested GPIO}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1hhjphMghjqubah}(h]h ]h"]h$]h&]uh1j#hjUubeh}(h]h ]h"]h$]h&]uh1jhjphMghjnubeh}(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&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMihjRubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhhjRubh)}(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:25: ./drivers/gpio/gpiolib.chMkhjRubh)}(h*In case of error an ERR_PTR() is returned.h]h*In case of error an ERR_PTR() is returned.}(hjʨhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMphjRubh)}(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:25: ./drivers/gpio/gpiolib.chMrhjRubh)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMphjRubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_count (C function) c.gpiod_counthNtauh1j hhhhhNhNubj)}(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}(hj2hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjAhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.hhhj@hMubjS)}(h gpiod_counth]jY)}(h gpiod_counth]h gpiod_count}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjOubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj.hhhj@hMubj)}(h((struct device *dev, const char *con_id)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjohhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjkubjB)}(h h]h }(hj|hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjkubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jUsb c.gpiod_countasbuh1hhjkubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjkubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjkubjY)}(hdevh]hdev}(hjȩhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjkubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjgubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjݩubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjݩubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݩubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjݩubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjݩubjY)}(hcon_idh]hcon_id}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjݩubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjgubeh}(h]h ]h"]h$]h&]jpjquh1jhj.hhhj@hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj*hhhj@hMubah}(h]j%ah ](j~jeh"]h$]h&]jj)jhuh1j#hj@hMhj'hhubj)}(hhh]h)}(h>return the number of GPIOs associated with a device / functionh]h>return the number of GPIOs associated with a device / function}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjLhhubah}(h]h ]h"]h$]h&]uh1jhj'hhhj@hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjgjjgjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chMhjkubj)}(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:25: ./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&]uh1j#hjubeh}(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:25: ./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&]uh1hhjުhMhjߪubah}(h]h ]h"]h$]h&]uh1j#hjêubeh}(h]h ]h"]h$]h&]uh1jhjުhMhjubeh}(h]h ]h"]h$]h&]uh1jhjkubh)}(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:25: ./drivers/gpio/gpiolib.chMhjkubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjkubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get (C function) c.gpiod_gethNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjIhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjEhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjWhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEhhhjVhMubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjjmodnameN classnameNjj)}j]j)}j{ gpiod_getsb c.gpiod_getasbuh1hhjEhhhjVhMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEhhhjVhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubjS)}(h gpiod_geth]jY)}(hjh]h gpiod_get}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjEhhhjVhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjëhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjЫhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjޫubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j c.gpiod_getasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj/ubjB)}(h h]h }(hj@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjB)}(h h]h }(hj\hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjY)}(hcon_idh]hcon_id}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj/ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j c.gpiod_getasbuh1hhjubjB)}(h h]h }(hj̬hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjڬhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjEhhhjVhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjAhhhjVhMubah}(h]j<ah ](j~jeh"]h$]h&]jj)jhuh1j#hjVhMhj>hhubj)}(hhh]h)}(h'obtain a GPIO for a given GPIO functionh]h'obtain a GPIO for a given GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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)}(hjEh]hstruct device *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j#hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMhjxubj$)}(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&]uh1j#hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjЭhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̭hMhjͭubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj̭hMhj<ubeh}(h]h ]h"]h$]h&]uh1jhj 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:25: ./drivers/gpio/gpiolib.chMhj 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 }(hjhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(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 GPIO.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_optional (C function)c.gpiod_get_optionalhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjIhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjEhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjWhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEhhhjVhMubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjeubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjjmodnameN classnameNjj)}j]j)}j{gpiod_get_optionalsbc.gpiod_get_optionalasbuh1hhjEhhhjVhMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjEhhhjVhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjEhhhjVhMubjS)}(hgpiod_get_optionalh]jY)}(hjh]hgpiod_get_optional}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjEhhhjVhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjîhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjЮhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjޮubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_optionalasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hj3hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj/ubjB)}(h h]h }(hj@hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj)}(hcharh]hchar}(hjNhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjB)}(h h]h }(hj\hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj/ubj)}(hjh]h*}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj/ubjY)}(hcon_idh]hcon_id}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj/ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_optionalasbuh1hhjubjB)}(h h]h }(hj̯hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjگhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjEhhhjVhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjAhhhjVhMubah}(h]j<ah ](j~jeh"]h$]h&]jj)jhuh1j#hjVhMhj>hhubj)}(hhh]h)}(h1obtain an optional GPIO for a given GPIO functionh]h1obtain an optional GPIO for a given GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhj>hhhjVhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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)}(hjEh]hstruct device *dev}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjCubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjZhMhj[ubah}(h]h ]h"]h$]h&]uh1j#hj?ubeh}(h]h ]h"]h$]h&]uh1jhjZhMhj<ubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMhjxubj$)}(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&]uh1j#hjxubeh}(h]h ]h"]h$]h&]uh1jhjhMhj<ubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjаhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj̰hMhjͰubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(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&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj ubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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:25: ./drivers/gpio/gpiolib.chMhj ubh)}(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}(hj7hhhNhNubah}(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:25: ./drivers/gpio/gpiolib.chMhj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_index (C function)c.gpiod_get_indexhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjphhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjlhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hj~hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjlhhhj}hMubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{gpiod_get_indexsbc.gpiod_get_indexasbuh1hhjlhhhj}hMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjlhhhj}hMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjlhhhj}hMubjS)}(hgpiod_get_indexh]jY)}(hjh]hgpiod_get_index}(hjϱhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj˱ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjlhhhj}hMubj)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj modnameN classnameNjj)}j]jc.gpiod_get_indexasbuh1hhjubjB)}(h h]h }(hj&hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj4hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjAhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjZhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjVubjB)}(h h]h }(hjghhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjVubj)}(hcharh]hchar}(hjuhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjVubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjVubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjVubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned int idxh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjŲhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjӲhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hidxh]hidx}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hj&hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj#ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj(modnameN classnameNjj)}j]jc.gpiod_get_indexasbuh1hhjubjB)}(h h]h }(hjDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjRhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjlhhhj}hMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhhj}hMubah}(h]jcah ](j~jeh"]h$]h&]jj)jhuh1j#hj}hMhjehhubj)}(hhh]h)}(h.obtain a GPIO from a multi-index GPIO functionh]h.obtain a GPIO from a multi-index GPIO function}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjyhhubah}(h]h ]h"]h$]h&]uh1jhjehhhj}hMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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:25: ./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&]uh1j#hjubeh}(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:25: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(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}(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:25: ./drivers/gpio/gpiolib.chMhj)ubj$)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjDhMhjEubah}(h]h ]h"]h$]h&]uh1j#hj)ubeh}(h]h ]h"]h$]h&]uh1jhjDhMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhjbubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj}hMhj~ubah}(h]h ]h"]h$]h&]uh1j#hjbubeh}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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:25: ./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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_index_optional (C function)c.gpiod_get_index_optionalhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj hhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM-ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj hhhjhM-ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj.hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj+ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj0modnameN classnameNjj)}j]j)}j{gpiod_get_index_optionalsbc.gpiod_get_index_optionalasbuh1hhj hhhjhM-ubjB)}(h h]h }(hjOhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj hhhjhM-ubj)}(hjh]h*}(hj]hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhhjhM-ubjS)}(hgpiod_get_index_optionalh]jY)}(hjLh]hgpiod_get_index_optional}(hjnhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj hhhjhM-ubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jJc.gpiod_get_index_optionalasbuh1hhjubjB)}(h h]h }(hjŵhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjӵhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hj"hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj0hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hj=hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hjVhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjB)}(h h]h }(hjdhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjRubj)}(hinth]hint}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjRubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjRubjY)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjRubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjŶhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj¶ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjǶmodnameN classnameNjj)}j]jJc.gpiod_get_index_optionalasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhj hhhjhM-ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhM-ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM-hjhhubj)}(hhh]h)}(h8obtain an optional GPIO from a multi-index GPIO functionh]h8obtain an optional GPIO from a multi-index GPIO function}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM-hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM-ubeh}(h]h ](jfunctioneh"]h$]h&]jjjj3jj3jjjuh1jhhhhhNhNubj)}(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)}(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:25: ./drivers/gpio/gpiolib.chM1hj7ubj)}(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 hjZubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM/hjVubj$)}(hhh]h)}(h2GPIO consumer, can be NULL for system-global GPIOsh]h2GPIO consumer, can be NULL for system-global GPIOs}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjqhM/hjrubah}(h]h ]h"]h$]h&]uh1j#hjVubeh}(h]h ]h"]h$]h&]uh1jhjqhM/hjSubj)}(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:25: ./drivers/gpio/gpiolib.chM0hjubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM0hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM0hjSubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j)}(hjηh]hunsigned int index}(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:25: ./drivers/gpio/gpiolib.chM1hjȷubj$)}(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&]uh1hhjhM1hjubah}(h]h ]h"]h$]h&]uh1j#hjȷubeh}(h]h ]h"]h$]h&]uh1jhjhM1hjSubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j)}(hjh]henum gpiod_flags flags}(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:25: ./drivers/gpio/gpiolib.chM2hjubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM2hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM2hjSubeh}(h]h ]h"]h$]h&]uh1jhj7ubh)}(h**Description**h]j)}(hjBh]h Description}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj@ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM4hj7ubh)}(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.}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM3hj7ubh)}(h **Return**h]j)}(hjih]hReturn}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM7hj7ubh)}(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:25: ./drivers/gpio/gpiolib.chM8hj7ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_get_array (C function)c.gpiod_get_arrayhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hj͸hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjʸubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjϸmodnameN classnameNjj)}j]j)}j{gpiod_get_arraysbc.gpiod_get_arrayasbuh1hhjhhhjhMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhMubjS)}(hgpiod_get_arrayh]jY)}(hjh]hgpiod_get_array}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hj(hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj$ubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$ubh)}(hhh]jY)}(hdeviceh]hdevice}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjHmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhj$ubjB)}(h h]h }(hjdhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$ubj)}(hjh]h*}(hjrhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj$ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj ubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjϹhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hjܹhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj ubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.gpiod_get_arrayasbuh1hhjubjB)}(h h]h }(hj1hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hj?hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(h6obtain multiple GPIOs from a multi-index GPIO functionh]h6obtain multiple GPIOs from a multi-index GPIO function}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjfhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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:25: ./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:25: ./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&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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&]uh1j#hjݺubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(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:25: ./drivers/gpio/gpiolib.chMhjubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj5hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj1hMhj2ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj1hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjWh]h Description}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjUubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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.}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhjubh)}(h **Return**h]j)}(hj~h]hReturn}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhj|ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./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}(hjhhhNhNubah}(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:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j%gpiod_get_array_optional (C function)c.gpiod_get_array_optionalhNtauh1j hhhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjջhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjѻhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjѻhhhjhM ubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{gpiod_get_array_optionalsbc.gpiod_get_array_optionalasbuh1hhjѻhhhjhM ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjѻhhhjhM ubj)}(hjh]h*}(hj#hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjѻhhhjhM ubjS)}(hgpiod_get_array_optionalh]jY)}(hjh]hgpiod_get_array_optional}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj0ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjѻhhhjhM ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjOhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjKubjB)}(h h]h }(hj\hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjKubh)}(hhh]jY)}(hdeviceh]hdevice}(hjmhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjomodnameN classnameNjj)}j]jc.gpiod_get_array_optionalasbuh1hhjKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjKubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjKubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjGubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj̼hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjڼhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjGubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj<modnameN classnameNjj)}j]jc.gpiod_get_array_optionalasbuh1hhjubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjGubeh}(h]h ]h"]h$]h&]jpjquh1jhjѻhhhjhM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjͻhhhjhM ubah}(h]jȻah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM hjʻ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:25: ./drivers/gpio/gpiolib.chM hjhhubah}(h]h ]h"]h$]h&]uh1jhjʻhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhhhNhNubj)}(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)}(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:25: ./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:25: ./drivers/gpio/gpiolib.chM hj˽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&]uh1hhjhM hjubah}(h]h ]h"]h$]h&]uh1j#hj˽ubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȽubj)}(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 hjubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM hjubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM hj ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM hjȽubj)}(h>``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j)}(hjCh]henum gpiod_flags flags}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjAubah}(h]h ]h"]h$]h&]uh1jh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chMhj=ubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjXhMhjYubah}(h]h ]h"]h$]h&]uh1j#hj=ubeh}(h]h ]h"]h$]h&]uh1jhjXhMhjȽubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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:25: ./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:25: ./drivers/gpio/gpiolib.chMhjubh)}(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}(hjþhhhNhNubah}(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:25: ./drivers/gpio/gpiolib.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_put (C function) c.gpiod_puthNtauh1j hhhhhNhNubj)}(hhh](j$)}(h'void gpiod_put (struct gpio_desc *desc)h]j*)}(h&void gpiod_put(struct gpio_desc *desc)h](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM(ubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhj hM(ubjS)}(h gpiod_puth]jY)}(h gpiod_puth]h gpiod_put}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhj hM(ubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hj9hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj5ubjB)}(h h]h }(hjFhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjWhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjTubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjYmodnameN classnameNjj)}j]j)}j{jsb c.gpiod_putasbuh1hhj5ubjB)}(h h]h }(hjwhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj5ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj5ubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj5ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj1ubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhj hM(ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhj hM(ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hj hM(hjhhubj)}(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:25: ./drivers/gpio/gpiolib.chM(hjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhj hM(ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjԿjjԿjjjuh1jhhhhhNhNubj)}(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}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjܿubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM,hjؿubj)}(hhh]j)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of 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:25: ./drivers/gpio/gpiolib.chM)hjubj$)}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM)hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM)hjubah}(h]h ]h"]h$]h&]uh1jhjؿubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM+hjؿubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM*hjؿubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_put_array (C function)c.gpiod_put_arrayhNtauh1j hhhhhNhNubj)}(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}(hj}hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjyhhh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM4ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjyhhhjhM4ubjS)}(hgpiod_put_arrayh]jY)}(hgpiod_put_arrayh]hgpiod_put_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjyhhhjhM4ubj)}(h(struct gpio_descs *descs)h]j)}(hstruct gpio_descs *descsh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_put_arrayasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdescsh]hdescs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhjyhhhjhM4ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjuhhhjhM4ubah}(h]jpah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM4hjrhhubj)}(hhh]h)}(h$dispose of multiple GPIO descriptorsh]h$dispose of multiple GPIO descriptors}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hh\/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:25: ./drivers/gpio/gpiolib.chM4hj:hhubah}(h]h ]h"]h$]h&]uh1jhjrhhhjhM4ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjUjjUjjjuh1jhhhhhNhNubj)}(hc**Parameters** ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](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:25: ./drivers/gpio/gpiolib.chM8hjYubj)}(hhh]j)}(hQ``struct gpio_descs *descs`` struct gpio_descs containing an array of descriptorsh](j)}(h``struct gpio_descs *descs``h]j)}(hj~h]hstruct gpio_descs *descs}(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:25: ./drivers/gpio/gpiolib.chM:hjxubj$)}(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:25: ./drivers/gpio/gpiolib.chM5hjubah}(h]h ]h"]h$]h&]uh1j#hjxubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjuubah}(h]h ]h"]h$]h&]uh1jhjYubeh}(h]h ] kernelindentah"]h$]h&]uh1jhhhhhNhNubeh}(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](j&acpi_gpio_get_io_resource (C function)c.acpi_gpio_get_io_resourcehNtauh1j hjhhhNhNubj)}(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)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubjS)}(hacpi_gpio_get_io_resourceh]jY)}(hacpi_gpio_get_io_resourceh]hacpi_gpio_get_io_resource}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(h?(struct acpi_resource *ares, struct acpi_resource_gpio **agpio)h](j)}(hstruct acpi_resource *aresh](j0)}(hj3h]hstruct}(hj-hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj)ubjB)}(h h]h }(hj:hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj)ubh)}(hhh]jY)}(h acpi_resourceh]h acpi_resource}(hjKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjHubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjMmodnameN classnameNjj)}j]j)}j{jsbc.acpi_gpio_get_io_resourceasbuh1hhj)ubjB)}(h h]h }(hjkhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj)ubj)}(hjh]h*}(hjyhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj)ubjY)}(haresh]hares}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj)ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj%ubj)}(h!struct acpi_resource_gpio **agpioh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hacpi_resource_gpioh]hacpi_resource_gpio}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jgc.acpi_gpio_get_io_resourceasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hagpioh]hagpio}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj%ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhjhhubj)}(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.}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chKhj*hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjEjjEjjjuh1jhhhjhNhNubj)}(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)}(hjOh]h Parameters}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chKhjIubj)}(hhh](j)}(hE``struct acpi_resource *ares`` Pointer to the ACPI resource to fetch h](j)}(h``struct acpi_resource *ares``h]j)}(hjnh]hstruct acpi_resource *ares}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j hjlubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chKhjhubj$)}(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&]uh1j#hjhubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubj)}(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:31: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjeubeh}(h]h ]h"]h$]h&]uh1jhjIubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chKhjIubh)}(h:``true`` if GpioIo resource is found, ``false`` otherwise.h](j)}(h``true``h]htrue}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh if GpioIo resource is found, }(hjhhhNhNubj)}(h ``false``h]hfalse}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubh otherwise.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chKhjIubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j-acpi_gpiochip_request_interrupts (C function)"c.acpi_gpiochip_request_interruptshNtauh1j hjhhhNhNubj)}(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}(hjjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjfhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMubjB)}(h h]h }(hjyhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjfhhhjxhMubjS)}(h acpi_gpiochip_request_interruptsh]jY)}(h acpi_gpiochip_request_interruptsh]h acpi_gpiochip_request_interrupts}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjfhhhjxhMubj)}(h(struct gpio_chip *chip)h]j)}(hstruct gpio_chip *chiph](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsb"c.acpi_gpiochip_request_interruptsasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hchiph]hchip}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhjfhhhjxhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjbhhhjxhMubah}(h]j]ah ](j~jeh"]h$]h&]jj)jhuh1j#hjxhMhj_hhubj)}(hhh]h)}(h&Register isr for gpio chip ACPI eventsh]h&Register isr for gpio chip ACPI events}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhj'hhubah}(h]h ]h"]h$]h&]uh1jhj_hhhjxhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjBjjBjjjuh1jhhhjhNhNubj)}(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)}(hjLh]h Parameters}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjJubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjFubj)}(hhh]j)}(h%``struct gpio_chip *chip`` GPIO chip h](j)}(h``struct gpio_chip *chip``h]j)}(hjkh]hstruct gpio_chip *chip}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjiubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjeubj$)}(hhh]h)}(h GPIO chiph]h GPIO chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjeubeh}(h]h ]h"]h$]h&]uh1jhjhMhjbubah}(h]h ]h"]h$]h&]uh1jhjFubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjFubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjFubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*acpi_gpiochip_free_interrupts (C function)c.acpi_gpiochip_free_interruptshNtauh1j hjhhhNhNubj)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hacpi_gpiochip_free_interruptsh]jY)}(hacpi_gpiochip_free_interruptsh]hacpi_gpiochip_free_interrupts}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h(struct gpio_chip *chip)h]j)}(hstruct gpio_chip *chiph](j0)}(hj3h]hstruct}(hj(hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj$ubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$ubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hjFhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjCubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjHmodnameN classnameNjj)}j]j)}j{jsbc.acpi_gpiochip_free_interruptsasbuh1hhj$ubjB)}(h h]h }(hjfhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj$ubj)}(hjh]h*}(hjthhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj$ubjY)}(hchiph]hchip}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj$ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj ubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:31: ./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:31: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubah}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj'h]h Description}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj%ubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./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.}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*acpi_dev_gpio_irq_wake_get_by (C function)c.acpi_dev_gpio_irq_wake_get_byhNtauh1j hjhhhNhNubj)}(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}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMubjB)}(h h]h }(hj{hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhhjzhMubjS)}(hacpi_dev_gpio_irq_wake_get_byh]jY)}(hacpi_dev_gpio_irq_wake_get_byh]hacpi_dev_gpio_irq_wake_get_by}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhhjzhMubj)}(hM(struct acpi_device *adev, const char *con_id, int index, bool *wake_capable)h](j)}(hstruct acpi_device *adevh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h acpi_deviceh]h acpi_device}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.acpi_dev_gpio_irq_wake_get_byasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hadevh]hadev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj(hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hj6hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjDhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjRhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hj_hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjxhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjtubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjtubjY)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjtubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hbool *wake_capableh](j)}(hj*h]hbool}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(h wake_capableh]h wake_capable}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhhjzhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjdhhhjzhMubah}(h]j_ah ](j~jeh"]h$]h&]jj)jhuh1j#hjzhMhjahhubj)}(hhh]h)}(h1Find GpioInt and translate it to Linux IRQ numberh]h1Find GpioInt and translate it to Linux IRQ number}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjahhhjzhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(hj!h]h Parameters}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubj)}(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)}(hj@h]hstruct acpi_device *adev}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj>ubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhj:ubj$)}(hhh]h)}(h(pointer to a ACPI device to get IRQ fromh]h(pointer to a ACPI device to get IRQ from}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhMhjVubah}(h]h ]h"]h$]h&]uh1j#hj:ubeh}(h]h ]h"]h$]h&]uh1jhjUhMhj7ubj)}(h9``const char *con_id`` optional name of GpioInt resource h](j)}(h``const char *con_id``h]j)}(hjyh]hconst char *con_id}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j hjwubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjsubj$)}(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&]uh1j#hjsubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubj)}(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:31: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubj)}(h>``bool *wake_capable`` Set to true if the IRQ is wake capable h](j)}(h``bool *wake_capable``h]j)}(hjh]hbool *wake_capable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubj$)}(hhh]h)}(h&Set to true if the IRQ is wake capableh]h&Set to true if the IRQ is wake capable}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhj7ubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hj8h]h Description}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj6ubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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.}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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.}(hj]hhhNhNubah}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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 }(hjlhhhNhNubj)}(h **con_id**h]hcon_id}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh" parameter. If the resource has a }(hjlhhhNhNubj)}(h **con_id**h]hcon_id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjlubh; in a property, then only those will be taken into account.}(hjlhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhf/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubh)}(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:31: ./drivers/gpio/gpiolib-acpi-core.chMhjubeh}(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#ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jof_get_named_gpio (C function)c.of_get_named_gpiohNtauh1j hjhhhNhNubj)}(hhh](j$)}(hUint of_get_named_gpio (const struct device_node *np, const char *propname, int index)h]j*)}(hTint of_get_named_gpio(const struct device_node *np, const char *propname, int index)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj hhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj hhhjhMubjS)}(hof_get_named_gpioh]jY)}(hof_get_named_gpioh]hof_get_named_gpio}(hj/hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj+ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj hhhjhMubj)}(h?(const struct device_node *np, const char *propname, int index)h](j)}(hconst struct device_node *nph](j0)}(hjh]hconst}(hjKhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjGubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjGubj0)}(hj3h]hstruct}(hjfhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjGubjB)}(h h]h }(hjshhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjGubh)}(hhh]jY)}(h device_nodeh]h device_node}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{j1sbc.of_get_named_gpioasbuh1hhjGubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjGubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGubjY)}(hnph]hnp}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjGubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjCubj)}(hconst char *propnameh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hpropnameh]hpropname}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjCubj)}(h int indexh](j)}(hinth]hint}(hj5hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjB)}(h h]h }(hjChhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj1ubjY)}(hindexh]hindex}(hjQhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj1ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjCubeh}(h]h ]h"]h$]h&]jpjquh1jhj hhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(h&Get a GPIO number to use with GPIO APIh]h&Get a GPIO number to use with GPIO API}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjxhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``const struct device_node *np`` device node to get GPIO from ``const char *propname`` Name of property containing gpio specifier(s) ``int index`` index of the GPIO **Description** **DEPRECATED** This function is deprecated and must not be used in new code. **Return** GPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.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:37: ./drivers/gpio/gpiolib-of.chMhjubj)}(hhh](j)}(h>``const struct device_node *np`` device node to get GPIO from h](j)}(h ``const struct device_node *np``h]j)}(hjh]hconst struct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubj$)}(hhh]h)}(hdevice node to get GPIO fromh]hdevice node to get GPIO from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hG``const char *propname`` Name of property containing gpio specifier(s) h](j)}(h``const char *propname``h]j)}(hjh]hconst char *propname}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubj$)}(hhh]h)}(h-Name of property containing gpio specifier(s)h]h-Name of property containing gpio specifier(s)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj hMhj ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj hMhjubj)}(h ``int index`` index of the GPIO h](j)}(h ``int index``h]j)}(hj.h]h int index}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhj(ubj$)}(hhh]h)}(hindex of the GPIOh]hindex of the GPIO}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1j#hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjih]h Description}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjgubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubh)}(hL**DEPRECATED** This function is deprecated and must not be used in new code.h](j)}(h**DEPRECATED**h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubh> This function is deprecated and must not be used in new code.}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.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:37: ./drivers/gpio/gpiolib-of.chMhjubh)}(haGPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.h]haGPIO number to use with Linux generic GPIO API, or one of the errno value on the error condition.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$of_mm_gpiochip_add_data (C function)c.of_mm_gpiochip_add_datahNtauh1j hjhhhNhNubj)}(hhh](j$)}(h_int of_mm_gpiochip_add_data (struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h]j*)}(h^int of_mm_gpiochip_add_data(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h](j)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chM ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhM ubjS)}(hof_mm_gpiochip_add_datah]jY)}(hof_mm_gpiochip_add_datah]hof_mm_gpiochip_add_data}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhM ubj)}(hC(struct device_node *np, struct of_mm_gpio_chip *mm_gc, void *data)h](j)}(hstruct device_node *nph](j0)}(hj3h]hstruct}(hj hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj-hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h device_nodeh]h device_node}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj@modnameN classnameNjj)}j]j)}j{jsbc.of_mm_gpiochip_add_dataasbuh1hhjubjB)}(h h]h }(hj^hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hnph]hnp}(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct of_mm_gpio_chip *mm_gch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jZc.of_mm_gpiochip_add_dataasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hmm_gch]hmm_gc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h void *datah](j)}(hvoidh]hvoid}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdatah]hdata}(hj+hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhM ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhM ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhM hjhhubj)}(hhh]h)}(h"Add memory mapped GPIO chip (bank)h]h"Add memory mapped GPIO chip (bank)}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chM hjRhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhM ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjmjjmjjjuh1jhhhjhNhNubj)}(hX**Parameters** ``struct device_node *np`` device node of the GPIO chip ``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structure ``void *data`` driver data to store in the struct gpio_chip **Description** To use this function you should allocate and fill mm_gc with: 1) In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional) 3) In the of_mm_gpio_chip structure: - save_regs callback (optional) If succeeded, this function will map bank's memory and will do all necessary work for you. Then you'll able to use .regs to manage GPIOs from the callbacks. **Return** 0 on success, or negative errno on failure.h](h)}(h**Parameters**h]j)}(hjwh]h Parameters}(hjyhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjuubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjqubj)}(hhh](j)}(h8``struct device_node *np`` device node of the GPIO chip h](j)}(h``struct device_node *np``h]j)}(hjh]hstruct device_node *np}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubj$)}(hhh]h)}(hdevice node of the GPIO chiph]hdevice node of the GPIO chip}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(hU``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structure h](j)}(h!``struct of_mm_gpio_chip *mm_gc``h]j)}(hjh]hstruct of_mm_gpio_chip *mm_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:37: ./drivers/gpio/gpiolib-of.chMhjubj$)}(hhh]h)}(h2pointer to the of_mm_gpio_chip allocated structureh]h2pointer to the of_mm_gpio_chip allocated structure}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubj)}(h<``void *data`` driver data to store in the struct gpio_chip h](j)}(h``void *data``h]j)}(hjh]h void *data}(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:37: ./drivers/gpio/gpiolib-of.chMhjubj$)}(hhh]h)}(h,driver data to store in the struct gpio_chiph]h,driver data to store in the struct gpio_chip}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjubeh}(h]h ]h"]h$]h&]uh1jhjqubh)}(h**Description**h]j)}(hjCh]h Description}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjAubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjqubh)}(h=To use this function you should allocate and fill mm_gc with:h]h=To use this function you should allocate and fill mm_gc with:}(hjYhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjqubhenumerated_list)}(hhh]h list_item)}(haIn the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional) h]h)}(h`In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional)h]h`In the gpio_chip structure: - all the callbacks - of_gpio_n_cells - of_xlate callback (optional)}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjoubah}(h]h ]h"]h$]h&]uh1jmhjjubah}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffixj4uh1jhhjqubji)}(hhh]jn)}(hBIn the of_mm_gpio_chip structure: - save_regs callback (optional) h]h)}(hAIn the of_mm_gpio_chip structure: - save_regs callback (optional)h]hAIn the of_mm_gpio_chip structure: - save_regs callback (optional)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjubah}(h]h ]h"]h$]h&]uh1jmhjubah}(h]h ]h"]h$]h&]jjjhjj4startKuh1jhhjqubh)}(hIf succeeded, this function will map bank's memory and will do all necessary work for you. Then you'll able to use .regs to manage GPIOs from the callbacks.h]hIf succeeded, this function will map bank’s memory and will do all necessary work for you. Then you’ll able to use .regs to manage GPIOs from the callbacks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMhjqubh)}(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:37: ./drivers/gpio/gpiolib-of.chMhjqubh)}(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:37: ./drivers/gpio/gpiolib-of.chM hjqubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j"of_mm_gpiochip_remove (C function)c.of_mm_gpiochip_removehNtauh1j hjhhhNhNubj)}(hhh](j$)}(h:void of_mm_gpiochip_remove (struct of_mm_gpio_chip *mm_gc)h]j*)}(h9void of_mm_gpiochip_remove(struct of_mm_gpio_chip *mm_gc)h](j)}(hvoidh]hvoid}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMKubjS)}(hof_mm_gpiochip_removeh]jY)}(hof_mm_gpiochip_removeh]hof_mm_gpiochip_remove}(hj,hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj(ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMKubj)}(h(struct of_mm_gpio_chip *mm_gc)h]j)}(hstruct of_mm_gpio_chip *mm_gch](j0)}(hj3h]hstruct}(hjHhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjDubjB)}(h h]h }(hjUhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjDubh)}(hhh]jY)}(hof_mm_gpio_chiph]hof_mm_gpio_chip}(hjfhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjcubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjhmodnameN classnameNjj)}j]j)}j{j.sbc.of_mm_gpiochip_removeasbuh1hhjDubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjDubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjDubjY)}(hmm_gch]hmm_gc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjDubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj@ubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMKubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMKhjhhubj)}(hhh]h)}(h%Remove memory mapped GPIO chip (bank)h]h%Remove memory mapped GPIO chip (bank)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMKhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(hf**Parameters** ``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structureh](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:37: ./drivers/gpio/gpiolib-of.chMOhjubj)}(hhh]j)}(hT``struct of_mm_gpio_chip *mm_gc`` pointer to the of_mm_gpio_chip allocated structureh](j)}(h!``struct of_mm_gpio_chip *mm_gc``h]j)}(hj h]hstruct of_mm_gpio_chip *mm_gc}(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:37: ./drivers/gpio/gpiolib-of.chMQhjubj$)}(hhh]h)}(h2pointer to the of_mm_gpio_chip allocated structureh]h2pointer to the of_mm_gpio_chip allocated structure}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1hh_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.chMLhj"ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj!hMQhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h]device-tree-supportah ]h"]device tree supportah$]h&]uh1hhhhhhhhK#ubh)}(hhh](h)}(hDevice-managed APIh]hDevice-managed API}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjUhhhhhK)ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_get (C function)c.devm_gpiod_gethNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj{hhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK!ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj{hhhjhK!ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{devm_gpiod_getsbc.devm_gpiod_getasbuh1hhj{hhhjhK!ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj{hhhjhK!ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj{hhhjhK!ubjS)}(hdevm_gpiod_geth]jY)}(hjh]hdevm_gpiod_get}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj{hhhjhK!ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubjB)}(h h]h }(hj5hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjChhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjihhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjeubjB)}(h h]h }(hjvhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjeubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjeubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjeubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjeubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_getasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhj{hhhjhK!ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjwhhhjhK!ubah}(h]jrah ](j~jeh"]h$]h&]jj)jhuh1j#hjhK!hjthhubj)}(hhh]h)}(hResource-managed gpiod_get()h]hResource-managed gpiod_get()}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK!hj7hhubah}(h]h ]h"]h$]h&]uh1jhjthhhjhK!ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjRjjRjjjuh1jhhhjUhNhNubj)}(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)}(hj\h]h Parameters}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjZubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK%hjVubj)}(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 hjyubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK"hjuubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhK"hjubah}(h]h ]h"]h$]h&]uh1j#hjuubeh}(h]h ]h"]h$]h&]uh1jhjhK"hjrubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhK#hjrubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhK$hjrubeh}(h]h ]h"]h$]h&]uh1jhjVubh)}(h**Description**h]j)}(hj(h]h Description}(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:43: ./drivers/gpio/gpiolib-devres.chK&hjVubh)}(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.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK%hjVubh)}(h **Return**h]j)}(hjOh]hReturn}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjMubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK)hjVubh)}(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 }(hjehhhNhNubj)}(h **con_id**h]hcon_id}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjeubh of device dev, }(hjehhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjeubh 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.}(hjehhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK*hjVubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j$devm_gpiod_get_optional (C function)c.devm_gpiod_get_optionalhNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK8ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhK8ubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{devm_gpiod_get_optionalsbc.devm_gpiod_get_optionalasbuh1hhjhhhjhK8ubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhK8ubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhK8ubjS)}(hdevm_gpiod_get_optionalh]jY)}(hjh]hdevm_gpiod_get_optional}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhK8ubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hj2hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj.ubjB)}(h h]h }(hj?hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.ubh)}(hhh]jY)}(hdeviceh]hdevice}(hjPhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjMubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjRmodnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhj.ubjB)}(h h]h }(hjnhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj.ubj)}(hjh]h*}(hj|hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj.ubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj.ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj*ubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj*ubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_optionalasbuh1hhjubjB)}(h h]h }(hj;hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjIhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj*ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhK8ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhK8ubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhK8hjhhubj)}(hhh]h)}(h%Resource-managed gpiod_get_optional()h]h%Resource-managed gpiod_get_optional()}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK8hjphhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhK8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(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)}(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:43: ./drivers/gpio/gpiolib-devres.chK``enum gpiod_flags flags`` optional GPIO initialization flags h](j)}(h``enum gpiod_flags flags``h]j)}(hj&h]henum gpiod_flags flags}(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:43: ./drivers/gpio/gpiolib-devres.chK;hj ubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj;hK;hj<ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj;hK;hjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjah]h Description}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chK=hjubh)}(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.}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj:ubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKOubj)}(hR(struct device *dev, const char *con_id, unsigned int idx, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjYhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjUubjB)}(h h]h }(hjfhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjUubh)}(hhh]jY)}(hdeviceh]hdevice}(hjwhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjtubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjymodnameN classnameNjj)}j]jc.devm_gpiod_get_indexasbuh1hhjUubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjUubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjUubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjQubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjQubj)}(hunsigned int idxh](j)}(hunsignedh]hunsigned}(hj&hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjB)}(h h]h }(hj4hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj"ubj)}(hinth]hint}(hjBhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj"ubjB)}(h h]h }(hjPhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj"ubjY)}(hidxh]hidx}(hj^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj"ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjQubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjwhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjsubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjsubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_indexasbuh1hhjsubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjsubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjsubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjQubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKOubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKOubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKOhjhhubj)}(hhh]h)}(h"Resource-managed gpiod_get_index()h]h"Resource-managed gpiod_get_index()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKOhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKOubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(hX**Parameters** ``struct device *dev`` GPIO consumer ``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** Managed 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. **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)}(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:43: ./drivers/gpio/gpiolib-devres.chKShjubj)}(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:43: ./drivers/gpio/gpiolib-devres.chKPhj&ubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjAhKPhjBubah}(h]h ]h"]h$]h&]uh1j#hj&ubeh}(h]h ]h"]h$]h&]uh1jhjAhKPhj#ubj)}(h9``const char *con_id`` function within the GPIO consumer h](j)}(h``const char *con_id``h]j)}(hjeh]hconst char *con_id}(hjghhhNhNubah}(h]h ]h"]h$]h&]uh1j hjcubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKQhj_ubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjzhKQhj{ubah}(h]h ]h"]h$]h&]uh1j#hj_ubeh}(h]h ]h"]h$]h&]uh1jhjzhKQhj#ubj)}(hA``unsigned int idx`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int idx``h]j)}(hjh]hunsigned int idx}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKRhjubj$)}(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&]uh1hhjhKRhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKRhj#ubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKShj#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:43: ./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.}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKThjubh)}(h **Return**h]j)}(hj9h]hReturn}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./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 }(hjOhhhNhNubj)}(h **con_id**h]hcon_id}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjOubh of device dev, }(hjOhhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j hjOubh 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.}(hjOhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j(devm_fwnode_gpiod_get_index (C function)c.devm_fwnode_gpiod_get_indexhNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{devm_fwnode_gpiod_get_indexsbc.devm_fwnode_gpiod_get_indexasbuh1hhjhhhjhKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjS)}(hdevm_fwnode_gpiod_get_indexh]jY)}(hjh]hdevm_fwnode_gpiod_get_index}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj)hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hj:hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj7ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj<modnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjubjB)}(h h]h }(hjXhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjfhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjshhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct fwnode_handle *fwnodeh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h fwnode_handleh]h fwnode_handle}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hfwnodeh]hfwnode}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hj%hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj3hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hcon_idh]hcon_id}(hj@hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h int indexh](j)}(hinth]hint}(hjYhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjUubjB)}(h h]h }(hjghhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjUubjY)}(hindexh]hindex}(hjuhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjUubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_fwnode_gpiod_get_indexasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *labelh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hj hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj(hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hlabelh]hlabel}(hj5hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhjhhubj)}(hhh]h)}(h'get a GPIO descriptor from a given nodeh]h'get a GPIO descriptor from a given node}(hj_hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj\hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjwjjwjjjuh1jhhhjUhNhNubj)}(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)}(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:43: ./drivers/gpio/gpiolib-devres.chKhj{ubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:43: ./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&]uh1j#hjubeh}(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:43: ./drivers/gpio/gpiolib-devres.chKhj ubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj'hKhj(ubah}(h]h ]h"]h$]h&]uh1j#hj ubeh}(h]h ]h"]h$]h&]uh1jhj'hKhjubj)}(h:``int index`` index of the GPIO to obtain in the consumer h](j)}(h ``int index``h]j)}(hjKh]h int index}(hjMhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjIubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjEubj$)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj`hKhjaubah}(h]h ]h"]h$]h&]uh1j#hjEubeh}(h]h ]h"]h$]h&]uh1jhj`hKhjubj)}(h5``enum gpiod_flags flags`` 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:43: ./drivers/gpio/gpiolib-devres.chKhj~ubj$)}(hhh]h)}(hGPIO initialization flagsh]hGPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hj~ubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjubeh}(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:43: ./drivers/gpio/gpiolib-devres.chKhj{ubh)}(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:43: ./drivers/gpio/gpiolib-devres.chKhj{ubh)}(h **Return**h]j)}(hjh]hReturn}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj{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 }(hj5hhhNhNubj)}(h **con_id**h]hcon_id}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj5ubh of device dev, }(hj5hhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj5ubh 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.}(hj5hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj{ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*devm_gpiod_get_index_optional (C function)c.devm_gpiod_get_index_optionalhNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{devm_gpiod_get_index_optionalsbc.devm_gpiod_get_index_optionalasbuh1hhjhhhjhKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjS)}(hdevm_gpiod_get_index_optionalh]jY)}(hjh]hdevm_gpiod_get_index_optional}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(hT(struct device *dev, const char *con_id, unsigned int index, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hj hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj"modnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubjB)}(h h]h }(hj>hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjLhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjYhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjrhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjnubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjnubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjnubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjnubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjnubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hunsigned int indexh](j)}(hunsignedh]hunsigned}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hinth]hint}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hindexh]hindex}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hj hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj-hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hj>hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj;ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj@modnameN classnameNjj)}j]jc.devm_gpiod_get_index_optionalasbuh1hhjubjB)}(h h]h }(hj\hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhKubah}(h]j{ah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhj}hhubj)}(hhh]h)}(h+Resource-managed gpiod_get_index_optional()h]h+Resource-managed gpiod_get_index_optional()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj}hhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(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:43: ./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:43: ./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&]uh1j#hjubeh}(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 hj ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjubj$)}(hhh]h)}(h!function within the GPIO consumerh]h!function within the GPIO consumer}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj#hKhj$ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj#hKhjubj)}(hC``unsigned int index`` index of the GPIO to obtain in the consumer h](j)}(h``unsigned int index``h]j)}(hjGh]hunsigned int index}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjAubj$)}(hhh]h)}(h+index of the GPIO to obtain in the consumerh]h+index of the GPIO to obtain in the consumer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j#hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhjubj)}(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 hj~ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjzubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hjzubeh}(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:43: ./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:43: ./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:43: ./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:43: ./drivers/gpio/gpiolib-devres.chKhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_gpiod_get_array (C function)c.devm_gpiod_get_arrayhNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjKhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjGhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKubjB)}(h h]h }(hjYhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjGhhhjXhKubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hjjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjgubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjlmodnameN classnameNjj)}j]j)}j{devm_gpiod_get_arraysbc.devm_gpiod_get_arrayasbuh1hhjGhhhjXhKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjGhhhjXhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjGhhhjXhKubjS)}(hdevm_gpiod_get_arrayh]jY)}(hjh]hdevm_gpiod_get_array}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjGhhhjXhKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_arrayasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hj5hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj1ubjB)}(h h]h }(hjBhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj1ubj)}(hcharh]hchar}(hjPhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjB)}(h h]h }(hj^hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj1ubj)}(hjh]h*}(hjlhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj1ubjY)}(hcon_idh]hcon_id}(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj1ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_arrayasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjGhhhjXhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjChhhjXhKubah}(h]j>ah ](j~jeh"]h$]h&]jj)jhuh1j#hjXhKhj@hhubj)}(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:43: ./drivers/gpio/gpiolib-devres.chKhjhhubah}(h]h ]h"]h$]h&]uh1jhj@hhhjXhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(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)}(hj(h]h Parameters}(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:43: ./drivers/gpio/gpiolib-devres.chKhj"ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j)}(hjGh]hstruct device *dev}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjEubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjAubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj\hKhj]ubah}(h]h ]h"]h$]h&]uh1j#hjAubeh}(h]h ]h"]h$]h&]uh1jhj\hKhj>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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjzubj$)}(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&]uh1j#hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhj>ubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhj>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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(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.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(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:43: ./drivers/gpio/gpiolib-devres.chKhj"ubh)}(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 }(hj1hhhNhNubj)}(h **con_id**h]hcon_id}(hj9hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj1ubh of device dev, }(hj1hhhNhNubj)}(h ``-ENOENT``h]h-ENOENT}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j hj1ubh 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.}(hj1hhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj"ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j*devm_gpiod_get_array_optional (C function)c.devm_gpiod_get_array_optionalhNtauh1j hjUhhhNhNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{devm_gpiod_get_array_optionalsbc.devm_gpiod_get_array_optionalasbuh1hhjhhhjhKubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhKubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhhhjhKubjS)}(hdevm_gpiod_get_array_optionalh]jY)}(hjh]hdevm_gpiod_get_array_optional}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhKubj)}(h@(struct device *dev, const char *con_id, enum gpiod_flags flags)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubjB)}(h h]h }(hj:hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hconst char *con_idh](j0)}(hjh]hconst}(hjnhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjjubjB)}(h h]h }(hj{hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjjubjY)}(hcon_idh]hcon_id}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(henum gpiod_flags flagsh](j0)}(hjUh]henum}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpiod_flagsh]h gpiod_flags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_get_array_optionalasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubjY)}(hflagsh]hflags}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhKubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj|hhhjhKubah}(h]jwah ](j~jeh"]h$]h&]jj)jhuh1j#hjhKhjyhhubj)}(hhh]h)}(h+Resource-managed gpiod_get_array_optional()h]h+Resource-managed gpiod_get_array_optional()}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj<hhubah}(h]h ]h"]h$]h&]uh1jhjyhhhjhKubeh}(h]h ](jfunctioneh"]h$]h&]jjjjWjjWjjjuh1jhhhjUhNhNubj)}(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)}(hjah]h Parameters}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1jhj_ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj[ubj)}(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 hj~ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhjzubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hjzubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubj)}(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:43: ./drivers/gpio/gpiolib-devres.chKhjubj$)}(hhh]h)}(h"optional GPIO initialization flagsh]h"optional GPIO initialization flags}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhKhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhKhjwubeh}(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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./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.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj[ubh)}(h **Return**h]j)}(hjTh]hReturn}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjRubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./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 }(hjjhhhNhNubj)}(h **con_id**h]hcon_id}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjjubh of device dev, }(hjjhhhNhNubj)}(h``NULL``h]hNULL}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjjubh 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.}(hjjhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chKhj[ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_put (C function)c.devm_gpiod_puthNtauh1j hjUhhhNhNubj)}(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:43: ./drivers/gpio/gpiolib-devres.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hdevm_gpiod_puth]jY)}(hdevm_gpiod_puth]hdevm_gpiod_put}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.devm_gpiod_putasbuh1hhjubjB)}(h h]h }(hj8hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjFhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjShhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjlhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjhubjB)}(h h]h }(hjyhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j4c.devm_gpiod_putasbuh1hhjhubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjhubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjhubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(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:43: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(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&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM hj ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j)}(hj.h]hstruct device *dev}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj,ubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMhj(ubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjChMhjDubah}(h]h ]h"]h$]h&]uh1j#hj(ubeh}(h]h ]h"]h$]h&]uh1jhjChMhj%ubj)}(h9``struct gpio_desc *desc`` GPIO descriptor to dispose of h](j)}(h``struct gpio_desc *desc``h]j)}(hjgh]hstruct gpio_desc *desc}(hjihhhNhNubah}(h]h ]h"]h$]h&]uh1j hjeubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM hjaubj$)}(hhh]h)}(hGPIO descriptor to dispose ofh]hGPIO descriptor to dispose of}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj|hM hj}ubah}(h]h ]h"]h$]h&]uh1j#hjaubeh}(h]h ]h"]h$]h&]uh1jhj|hM hj%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&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM hj ubh)}(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:43: ./drivers/gpio/gpiolib-devres.chM hj ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jdevm_gpiod_unhinge (C function)c.devm_gpiod_unhingehNtauh1j hjUhhhNhNubj)}(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:43: ./drivers/gpio/gpiolib-devres.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hdevm_gpiod_unhingeh]jY)}(hdevm_gpiod_unhingeh]hdevm_gpiod_unhinge}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h,(struct device *dev, struct gpio_desc *desc)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hj$hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj ubjB)}(h h]h }(hj1hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj ubh)}(hhh]jY)}(hdeviceh]hdevice}(hjBhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj?ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjDmodnameN classnameNjj)}j]j)}j{j sbc.devm_gpiod_unhingeasbuh1hhj ubjB)}(h h]h }(hjbhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj ubj)}(hjh]h*}(hjphhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj ubjY)}(hdevh]hdev}(hj}hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j^c.devm_gpiod_unhingeasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(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:43: ./drivers/gpio/gpiolib-devres.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjj/jj/jjjuh1jhhhjUhNhNubj)}(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)}(hj9h]h Parameters}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj7ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMhj3ubj)}(hhh](j)}(h%``struct device *dev`` GPIO consumer h](j)}(h``struct device *dev``h]j)}(hjXh]hstruct device *dev}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j hjVubah}(h]h ]h"]h$]h&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMhjRubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjmhMhjnubah}(h]h ]h"]h$]h&]uh1j#hjRubeh}(h]h ]h"]h$]h&]uh1jhjmhMhjOubj)}(hN``struct gpio_desc *desc`` GPIO descriptor to remove resource management from 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&]uh1jhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMhjubj$)}(hhh]h)}(h2GPIO descriptor to remove resource management fromh]h2GPIO descriptor to remove resource management from}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMhjOubeh}(h]h ]h"]h$]h&]uh1jhj3ubh)}(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:43: ./drivers/gpio/gpiolib-devres.chMhj3ubh)}(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](jR)}(h *DEPRECATED*h]h DEPRECATED}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jQhjubh 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:43: ./drivers/gpio/gpiolib-devres.chMhj3ubh)}(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:43: ./drivers/gpio/gpiolib-devres.chMhj3ubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j!devm_gpiod_put_array (C function)c.devm_gpiod_put_arrayhNtauh1j hjUhhhNhNubj)}(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}(hj.hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj*hhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM8ubjB)}(h h]h }(hj=hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj*hhhj<hM8ubjS)}(hdevm_gpiod_put_arrayh]jY)}(hdevm_gpiod_put_arrayh]hdevm_gpiod_put_array}(hjOhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjKubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhj*hhhj<hM8ubj)}(h.(struct device *dev, struct gpio_descs *descs)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hjkhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjgubjB)}(h h]h }(hjxhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjgubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jQsbc.devm_gpiod_put_arrayasbuh1hhjgubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjgubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjgubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjgubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjcubj)}(hstruct gpio_descs *descsh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_descsh]h gpio_descs}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jc.devm_gpiod_put_arrayasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj'hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdescsh]hdescs}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjcubeh}(h]h ]h"]h$]h&]jpjquh1jhj*hhhj<hM8ubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhj&hhhj<hM8ubah}(h]j!ah ](j~jeh"]h$]h&]jj)jhuh1j#hj<hM8hj#hhubj)}(hhh]h)}(h"Resource-managed gpiod_put_array()h]h"Resource-managed gpiod_put_array()}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM8hj[hhubah}(h]h ]h"]h$]h&]uh1jhj#hhhj<hM8ubeh}(h]h ](jfunctioneh"]h$]h&]jjjjvjjvjjjuh1jhhhjUhNhNubj)}(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)}(hjh]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:43: ./drivers/gpio/gpiolib-devres.chM<hjzubj)}(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:43: ./drivers/gpio/gpiolib-devres.chM9hjubj$)}(hhh]h)}(h GPIO consumerh]h GPIO consumer}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhM9hjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM9hjubj)}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhM:hjubeh}(h]h ]h"]h$]h&]uh1jhjzubh)}(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:43: ./drivers/gpio/gpiolib-devres.chM<hjzubh)}(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.}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chM;hjzubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](j,devm_gpiochip_add_data_with_key (C function)!c.devm_gpiochip_add_data_with_keyhNtauh1j hjUhhhNhNubj)}(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}(hjXhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjThhhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMNubjB)}(h h]h }(hjghhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjThhhjfhMNubjS)}(hdevm_gpiochip_add_data_with_keyh]jY)}(hdevm_gpiochip_add_data_with_keyh]hdevm_gpiochip_add_data_with_key}(hjyhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjuubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjThhhjfhMNubj)}(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](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hdeviceh]hdevice}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{j{sb!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct gpio_chip *gch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_chiph]h gpio_chip}(hj%hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj"ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj'modnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjB)}(h h]h }(hjChhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjQhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hgch]hgc}(hj^hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h void *datah](j)}(hvoidh]hvoid}(hjwhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjsubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjsubjY)}(hdatah]hdata}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjsubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hstruct lock_class_key *lock_keyh](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(hlock_class_keyh]hlock_class_key}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hlock_keyh]hlock_key}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(h"struct lock_class_key *request_keyh](j0)}(hj3h]hstruct}(hj)hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj%ubjB)}(h h]h }(hj6hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%ubh)}(hhh]jY)}(hlock_class_keyh]hlock_class_key}(hjGhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjDubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjImodnameN classnameNjj)}j]j!c.devm_gpiochip_add_data_with_keyasbuh1hhj%ubjB)}(h h]h }(hjehhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj%ubj)}(hjh]h*}(hjshhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj%ubjY)}(h request_keyh]h request_key}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj%ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjThhhjfhMNubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjPhhhjfhMNubah}(h]jKah ](j~jeh"]h$]h&]jj)jhuh1j#hjfhMNhjMhhubj)}(hhh]h)}(h-Resource managed gpiochip_add_data_with_key()h]h-Resource managed gpiochip_add_data_with_key()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMNhjhhubah}(h]h ]h"]h$]h&]uh1jhjMhhhjfhMNubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjUhNhNubj)}(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:43: ./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:43: ./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&]uh1j#hjubeh}(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)}(hj$h]hstruct gpio_chip *gc}(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:43: ./drivers/gpio/gpiolib-devres.chMPhjubj$)}(hhh]h)}(hthe GPIO chip to registerh]hthe GPIO chip to register}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMPhj:ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMPhjubj)}(h=``void *data`` driver-private data associated with this chip h](j)}(h``void *data``h]j)}(hj]h]h void *data}(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:43: ./drivers/gpio/gpiolib-devres.chMQhjWubj$)}(hhh]h)}(h-driver-private data associated with this chiph]h-driver-private data associated with this chip}(hjvhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjrhMQhjsubah}(h]h ]h"]h$]h&]uh1j#hjWubeh}(h]h ]h"]h$]h&]uh1jhjrhMQhjubj)}(h?``struct lock_class_key *lock_key`` lockdep class for IRQ lock h](j)}(h#``struct lock_class_key *lock_key``h]j)}(hjh]hstruct lock_class_key *lock_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:43: ./drivers/gpio/gpiolib-devres.chMRhjubj$)}(hhh]h)}(hlockdep class for IRQ lockh]hlockdep class for IRQ lock}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhMRhjubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(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:43: ./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&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhjhMShjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hj h]hContext}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h!potentially before irqs will workh]h!potentially before irqs will work}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMUhjubh)}(h**Description**h]j)}(hj1h]h Description}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhj/ubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./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.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMVhjubh)}(h **Return**h]j)}(hjXh]hReturn}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jhjVubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./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.}(hjnhhhNhNubah}(h]h ]h"]h$]h&]uh1hhc/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:43: ./drivers/gpio/gpiolib-devres.chMYhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjUhhhNhNubeh}(h]device-managed-apiah ]h"]device-managed apiah$]h&]uh1hhhhhhhhK)ubh)}(hhh](h)}(h sysfs helpersh]h sysfs helpers}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK/ubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export (C function)c.gpiod_exporthNtauh1j hjhhhNhNubj)}(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:49: ./drivers/gpio/gpiolib-sysfs.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(h gpiod_exporth]jY)}(h gpiod_exporth]h gpiod_export}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h3(struct gpio_desc *desc, bool direction_may_change)h](j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_exportasbuh1hhjubjB)}(h h]h }(hj1hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hj?hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hjLhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubj)}(hbool direction_may_changeh](j)}(hj*h]hbool}(hjehhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjaubjB)}(h h]h }(hjrhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjaubjY)}(hdirection_may_changeh]hdirection_may_change}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjaubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(hexport a GPIO through sysfsh]hexport a GPIO through sysfs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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.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:49: ./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:49: ./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&]uh1j#hjubeh}(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)}(hj$h]hbool direction_may_change}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj"ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjubj$)}(hhh]h)}(h+true if userspace may change GPIO directionh]h+true if userspace may change GPIO direction}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj9hMhj:ubah}(h]h ]h"]h$]h&]uh1j#hjubeh}(h]h ]h"]h$]h&]uh1jhj9hMhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h **Context**h]j)}(hj_h]hContext}(hjahhhNhNubah}(h]h ]h"]h$]h&]uh1jhj]ubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(harch_initcall or laterh]harch_initcall or later}(hjuhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(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:49: ./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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./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:49: ./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:49: ./drivers/gpio/gpiolib-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_export_link (C function)c.gpiod_export_linkhNtauh1j hjhhhNhNubj)}(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:49: ./drivers/gpio/gpiolib-sysfs.chMuubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMuubjS)}(hgpiod_export_linkh]jY)}(hgpiod_export_linkh]hgpiod_export_link}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMuubj)}(h>(struct device *dev, const char *name, struct gpio_desc *desc)h](j)}(hstruct device *devh](j0)}(hj3h]hstruct}(hj/hhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hj+ubjB)}(h h]h }(hj<hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj+ubh)}(hhh]jY)}(hdeviceh]hdevice}(hjMhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjJubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjOmodnameN classnameNjj)}j]j)}j{jsbc.gpiod_export_linkasbuh1hhj+ubjB)}(h h]h }(hjmhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhj+ubj)}(hjh]h*}(hj{hhhNhNubah}(h]h ]jah"]h$]h&]uh1jhj+ubjY)}(hdevh]hdev}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj+ubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj'ubj)}(hconst char *nameh](j0)}(hjh]hconst}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hcharh]hchar}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hnameh]hname}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj'ubj)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetjmodnameN classnameNjj)}j]jic.gpiod_export_linkasbuh1hhjubjB)}(h h]h }(hj:hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjHhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hjUhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhj'ubeh}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMuubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMuubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMuhjhhubj)}(hhh]h)}(h,create a sysfs link to an exported GPIO nodeh]h,create a sysfs link to an exported GPIO node}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMuhj|hhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMuubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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)}(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:49: ./drivers/gpio/gpiolib-sysfs.chMyhjubj)}(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:49: ./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&]uh1j#hjubeh}(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:49: ./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&]uh1j#hjubeh}(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)}(hj2h]hstruct gpio_desc *desc}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j hj0ubah}(h]h ]h"]h$]h&]uh1jhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMxhj,ubj$)}(hhh]h)}(h+GPIO to create symlink to, already exportedh]h+GPIO to create symlink to, already exported}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjGhMxhjHubah}(h]h ]h"]h$]h&]uh1j#hj,ubeh}(h]h ]h"]h$]h&]uh1jhjGhMxhjubeh}(h]h ]h"]h$]h&]uh1jhjubh)}(h**Description**h]j)}(hjmh]h Description}(hjohhhNhNubah}(h]h ]h"]h$]h&]uh1jhjkubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMzhjubh)}(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.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMyhjubh)}(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:49: ./drivers/gpio/gpiolib-sysfs.chM|hjubh)}(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:49: ./drivers/gpio/gpiolib-sysfs.chM}hjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubj)}(hhh]h}(h]h ]h"]h$]h&]entries](jgpiod_unexport (C function)c.gpiod_unexporthNtauh1j hjhhhNhNubj)}(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:49: ./drivers/gpio/gpiolib-sysfs.chMubjB)}(h h]h }(hjhhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjhhhjhMubjS)}(hgpiod_unexporth]jY)}(hgpiod_unexporth]hgpiod_unexport}(hjhhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubah}(h]h ](jkjleh"]h$]h&]jpjquh1jRhjhhhjhMubj)}(h(struct gpio_desc *desc)h]j)}(hstruct gpio_desc *desch](j0)}(hj3h]hstruct}(hjhhhNhNubah}(h]h ]j<ah"]h$]h&]uh1j/hjubjB)}(h h]h }(hj#hhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubh)}(hhh]jY)}(h gpio_desch]h gpio_desc}(hj4hhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhj1ubah}(h]h ]h"]h$]h&] refdomainjreftypej{ reftargetj6modnameN classnameNjj)}j]j)}j{jsbc.gpiod_unexportasbuh1hhjubjB)}(h h]h }(hjThhhNhNubah}(h]h ]jNah"]h$]h&]uh1jAhjubj)}(hjh]h*}(hjbhhhNhNubah}(h]h ]jah"]h$]h&]uh1jhjubjY)}(hdesch]hdesc}(hjohhhNhNubah}(h]h ]jdah"]h$]h&]uh1jXhjubeh}(h]h ]h"]h$]h&]noemphjpjquh1jhjubah}(h]h ]h"]h$]h&]jpjquh1jhjhhhjhMubeh}(h]h ]h"]h$]h&]jpjqjxuh1j)jyjzhjhhhjhMubah}(h]jah ](j~jeh"]h$]h&]jj)jhuh1j#hjhMhjhhubj)}(hhh]h)}(h reverse effect of gpiod_export()h]h reverse effect of gpiod_export()}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjhhubah}(h]h ]h"]h$]h&]uh1jhjhhhjhMubeh}(h]h ](jfunctioneh"]h$]h&]jjjjjjjjjuh1jhhhjhNhNubj)}(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:49: ./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:49: ./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&]uh1j#hjubeh}(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:49: ./drivers/gpio/gpiolib-sysfs.chMhjubh)}(h!This is implicit on gpiod_free().h]h!This is implicit on gpiod_free().}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1hhb/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:49: ./drivers/gpio/gpiolib-sysfs.chMhjubeh}(h]h ] kernelindentah"]h$]h&]uh1jhjhhhNhNubeh}(h] sysfs-helpersah ]h"] sysfs helpersah$]h&]uh1hhhhhhhhK/ubeh}(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_handlerjterror_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}(jNjKjjjjjRjOjjjFjCu nametypes}(jNjjjRjjFuh}(jKhjhjj%jC jH j jjjj9j>jjjjj9j>jjjjjC!jH!jO#jT#jD%jI%j&j&jn(js(j*j*j,j,j.j.j0j0j2j"2j3j3j"7j'7j8j8j:j:jp<ju<j=j=j?j?jAjBj DjDjEjEjHjHjKjKjPjPjQjQj1Tj6TjoXjtXjYjYj[j[j]j]j_j_jajajcjcj fjfj8hj=hjijij/kj4kjljljnjnjCrjHrjujujwjwjzj zj}j}j7j<jӂj؂jjjjjjjÊjȊjjjIjNjבjܑjejjjjjjj=jBjˠjРj&j+jjjܤjj%j*j<jAj<jAjcjhjjjjjȻjͻjjjpjujjjjj]jbjjj_jdjOjjjjjjjjjUjrjwjjjjjjj{jj>jCjwj|jjjjj!j&jKjPjCjjjjjjju footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages]hsystem_message)}(hhh]h)}(h:Enumerated list start value not ordinal-1: "3" (ordinal 3)h]h>Enumerated list start value not ordinal-1: “3” (ordinal 3)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjubah}(h]h ]h"]h$]h&]levelKtypeINFOsource_/var/lib/git/docbuild/linux/Documentation/driver-api/gpio/index:37: ./drivers/gpio/gpiolib-of.clineMNuh1jhjqubatransform_messages] transformerN include_log] decorationNhhub.