drivers/gpio/gpiolib-swnode.h

Source file repositories/reference/linux-study-clean/drivers/gpio/gpiolib-swnode.h

File Facts

System
Linux kernel
Corpus path
drivers/gpio/gpiolib-swnode.h
Extension
.h
Size
382 bytes
Lines
15
Domain
Driver Families
Bucket
drivers/gpio
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef GPIOLIB_SWNODE_H
#define GPIOLIB_SWNODE_H

struct fwnode_handle;
struct gpio_desc;

struct gpio_desc *swnode_find_gpio(struct fwnode_handle *fwnode,
				   const char *con_id, unsigned int idx,
				   unsigned long *flags);
int swnode_gpio_count(const struct fwnode_handle *fwnode, const char *con_id);

#endif /* GPIOLIB_SWNODE_H */

Annotation

Implementation Notes