drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c

Source file repositories/reference/linux-study-clean/drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c

File Facts

System
Linux kernel
Corpus path
drivers/hid/amd-sfh-hid/sfh1_1/amd_sfh_interface.c
Extension
.c
Size
4512 bytes
Lines
177
Domain
Driver Families
Bucket
drivers/hid
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.

Dependency Surface

Detected Declarations

Annotated Snippet

switch (op) {
		case MT_HPD:
			return amd_sfh_hpd_info(&sfh_info->user_present);
		case MT_ALS:
			return amd_sfh_als_info(&sfh_info->ambient_light);
		case MT_SRA:
			return amd_sfh_mode_info(&sfh_info->platform_type,
						 &sfh_info->laptop_placement);
		}
	}
	return -EINVAL;
}
EXPORT_SYMBOL_GPL(amd_get_sfh_info);

Annotation

Implementation Notes