STRUCT INT3472_GPIO_MAP(9)
π NAME π
struct int3472_gpio_map β bestie, this is literally the little struct that maps GPIOs to whatever the sensor driver is expecting (as in DT bindings, iykyk) π
So we're deep in the Kernel API Manual today, and this is one of those tiny-but-iconic structs that keeps the whole int3472 situation from falling apart. Not me being obsessed with a struct, but likeβ¦ here we are π«Ά
β¨ SYNOPSIS β¨
struct int3472_gpio_map {
const char * const *hids;
u8 type_from;
u8 type_to;
bool polarity_low;
unsigned int enable_time_us;
const char *con_id;
};
That's the whole vibe. Six fields. Let's go through them one by one, no skipping, periodt πΈ
π¦ MEMBERS π¦
hidsβ aNULL-terminated array of ACPI HIDs of the devices without the instance number, e.g.INT347E. Literally the guest list, and the list ends atNULLso you know when to stop scrolling πtype_fromβ the GPIO type from ACPI?SDT. That's where it's coming from, bestie β the original source of truth β¨type_toβ the assigned GPIO type, and typically it's the same astype_from. Not a glow-up, just a confirmation πpolarity_lowβ<italic>bool</italic>energy.GPIO_ACTIVE_LOWtrue if thepolarity_lowis true,GPIO_ACTIVE_HIGHotherwise. So like, true = low, false = high. Iconic little logic gate of a field π₯enable_time_usβ enable time in usec for GPIOs mapped to regulators. Timing matters, bestie, don't sleep on it β±οΈcon_idβ the name of the GPIO for the device. Its little government name π
π SEE ALSO π
- Kernel file:
.//drivers/platform/x86/intel/int3472/discrete.cβ actually the original says./drivers/platform/x86/intel/int3472/discrete.c, so go read that if you want the full lore π skl_int3472_handle_gpio_resources(9)β the friend who actually handles the GPIO resources. Say hi π
Go peep the kernel file if you're nosy, it's giving main character energy. Do not invent fields, do not skip fields, and definitely do not mess with polarity_low unless you mean it π
Okay that's the page!! Sourced from ./drivers/platform/x86/intel/i... and dated October 2026 β so mark your calendars, bestie, this struct says hi from the future π§β Byeee π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms