drivers/iio/pressure/mprls0025pa.h
Source file repositories/reference/linux-study-clean/drivers/iio/pressure/mprls0025pa.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/iio/pressure/mprls0025pa.h- Extension
.h- Size
- 2413 bytes
- Lines
- 91
- Domain
- Driver Families
- Bucket
- drivers/iio
- 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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/completion.hlinux/mutex.hlinux/types.hlinux/iio/iio.h
Detected Declarations
struct devicestruct mpr_datastruct mpr_opsstruct mpr_datastruct mpr_opsenum mpr_func_id
Annotated Snippet
struct mpr_data {
struct device *dev;
const struct mpr_ops *ops;
struct mutex lock;
u32 pmin;
u32 pmax;
enum mpr_func_id function;
u32 outmin;
u32 outmax;
int scale;
int scale2;
int offset;
struct gpio_desc *gpiod_reset;
int irq;
struct completion completion;
struct {
s32 pres;
aligned_s64 ts;
} chan;
u8 rx_buf[MPR_MEASUREMENT_RD_SIZE] __aligned(IIO_DMA_MINALIGN);
u8 tx_buf[MPR_MEASUREMENT_RD_SIZE];
};
struct mpr_ops {
int (*read)(struct mpr_data *data, const u8 cmd, const u8 cnt);
int (*write)(struct mpr_data *data, const u8 cmd, const u8 cnt);
};
int mpr_common_probe(struct device *dev, const struct mpr_ops *ops, int irq);
#endif
Annotation
- Immediate include surface: `linux/completion.h`, `linux/mutex.h`, `linux/types.h`, `linux/iio/iio.h`.
- Detected declarations: `struct device`, `struct mpr_data`, `struct mpr_ops`, `struct mpr_data`, `struct mpr_ops`, `enum mpr_func_id`.
- Atlas domain: Driver Families / drivers/iio.
- Implementation status: source implementation candidate.
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.