drivers/gpio/gpiolib-of.h

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

File Facts

System
Linux kernel
Corpus path
drivers/gpio/gpiolib-of.h
Extension
.h
Size
1656 bytes
Lines
62
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

static inline int of_gpiochip_add(struct gpio_chip *gc) { return 0; }
static inline void of_gpiochip_remove(struct gpio_chip *gc) { }
static inline bool of_gpiochip_instance_match(struct gpio_chip *gc,
					      unsigned int index)
{
	return false;
}
static inline int of_gpio_count(const struct fwnode_handle *fwnode,
				const char *con_id)
{
	return 0;
}
static inline int of_gpiochip_get_lflags(struct gpio_chip *chip,
					 struct fwnode_reference_args *gpiospec,
					 unsigned long *lflags)
{
	return -ENOENT;
}
#endif /* CONFIG_OF_GPIO */

extern struct notifier_block gpio_of_notifier;

#endif /* GPIOLIB_OF_H */

Annotation

Implementation Notes