drivers/pinctrl/pinctrl-sx150x.c
Source file repositories/reference/linux-study-clean/drivers/pinctrl/pinctrl-sx150x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pinctrl/pinctrl-sx150x.c- Extension
.c- Size
- 30282 bytes
- Lines
- 1273
- Domain
- Driver Families
- Bucket
- drivers/pinctrl
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/regmap.hlinux/i2c.hlinux/init.hlinux/interrupt.hlinux/irq.hlinux/mutex.hlinux/slab.hlinux/of.hlinux/gpio/driver.hlinux/pinctrl/pinconf.hlinux/pinctrl/pinctrl.hlinux/pinctrl/pinmux.hlinux/pinctrl/pinconf-generic.hcore.hpinconf.hpinctrl-utils.h
Detected Declarations
struct sx150x_123_pristruct sx150x_456_pristruct sx150x_789_pristruct sx150x_device_datastruct sx150x_pinctrlfunction sx150x_pinctrl_get_groups_countfunction sx150x_pinctrl_get_group_pinsfunction sx150x_pin_is_osciofunction sx150x_gpio_get_directionfunction sx150x_gpio_getfunction __sx150x_gpio_setfunction sx150x_gpio_oscio_setfunction sx150x_gpio_setfunction sx150x_gpio_set_multiplefunction sx150x_gpio_direction_inputfunction sx150x_gpio_direction_outputfunction sx150x_irq_maskfunction sx150x_irq_unmaskfunction sx150x_irq_set_sensefunction sx150x_irq_set_typefunction sx150x_irq_thread_fnfunction sx150x_irq_bus_lockfunction sx150x_irq_bus_sync_unlockfunction sx150x_irq_print_chipfunction sx150x_pinconf_getfunction sx150x_pinconf_setfunction sx150x_resetfunction sx150x_init_miscfunction sx150x_init_hwfunction sx150x_regmap_reg_widthfunction sx150x_maybe_swizzlefunction sx150x_regmap_reg_readfunction sx150x_regmap_reg_writefunction sx150x_reg_volatilefunction sx150x_probefunction sx150x_initmodule init sx150x_init
Annotated Snippet
subsys_initcall(sx150x_init);
MODULE_DESCRIPTION("Semtech SX150x I2C GPIO expander pinctrl driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/regmap.h`, `linux/i2c.h`, `linux/init.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/mutex.h`, `linux/slab.h`, `linux/of.h`.
- Detected declarations: `struct sx150x_123_pri`, `struct sx150x_456_pri`, `struct sx150x_789_pri`, `struct sx150x_device_data`, `struct sx150x_pinctrl`, `function sx150x_pinctrl_get_groups_count`, `function sx150x_pinctrl_get_group_pins`, `function sx150x_pin_is_oscio`, `function sx150x_gpio_get_direction`, `function sx150x_gpio_get`.
- Atlas domain: Driver Families / drivers/pinctrl.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.