drivers/hwmon/adt7x10.h

Source file repositories/reference/linux-study-clean/drivers/hwmon/adt7x10.h

File Facts

System
Linux kernel
Corpus path
drivers/hwmon/adt7x10.h
Extension
.h
Size
578 bytes
Lines
26
Domain
Driver Families
Bucket
drivers/hwmon
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 __HWMON_ADT7X10_H__
#define __HWMON_ADT7X10_H__

#include <linux/types.h>
#include <linux/pm.h>

/* ADT7410 registers definition */
#define ADT7X10_TEMPERATURE		0
#define ADT7X10_STATUS			2
#define ADT7X10_CONFIG			3
#define ADT7X10_T_ALARM_HIGH		4
#define ADT7X10_T_ALARM_LOW		6
#define ADT7X10_T_CRIT			8
#define ADT7X10_T_HYST			0xA
#define ADT7X10_ID			0xB

struct device;

int adt7x10_probe(struct device *dev, const char *name, int irq,
		  struct regmap *regmap);

extern const struct dev_pm_ops adt7x10_dev_pm_ops;

#endif

Annotation

Implementation Notes