STRUCT INT3472_GPIO_MAP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 β€” a NULL-terminated array of ACPI HIDs of the devices without the instance number, e.g. INT347E. Literally the guest list, and the list ends at NULL so 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 as type_from. Not a glow-up, just a confirmation πŸ’…
  • polarity_low β€” <italic>bool</italic> energy. GPIO_ACTIVE_LOW true if the polarity_low is true, GPIO_ACTIVE_HIGH otherwise. 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