STRUCT I2C_MUX_REG_PLATFORM_DATA(9)
β¨ struct i2c_mux_reg_platform_data β the Kernel API Manual tea π
okay bestie, so this page is literally called struct i2c_m...latform_data(9) in the Kernel API Manual (yes the header truncates it like that, she's shy), and it's all about one struct. grab a strawberry drink π and let's go.
π NAME π
struct i2c_mux_reg_platform_data β platform-dependent data for i2c-mux-reg. that's it, that's the whole vibe. it's the little bundle of info that tells the register-based i2c mux driver how to behave π
πΈ SYNOPSIS πΈ
struct i2c_mux_reg_platform_data {
int parent;
int base_nr;
const unsigned int *values;
int n_values;
bool little_endian;
bool write_only;
u32 idle;
bool idle_in_use;
void __iomem *reg;
resource_size_t reg_size;
};
like, that's her. that's the struct. no cap, that's the whole shape of it π¦
π Members π
hii so here's every single field, one by one, no skipping, we don't do that here π
parentβ the parent I2C bus adapter number. i.e. which bus this mux is hanging off of π«Άbase_nrβ base I2C bus number to number the adapters from, or zero for dynamic numbering. so you either pick a starting number or you let the kernel do its little thing β¨valuesβ array of value for each channel. one value per channel, matching outfits basically πn_valuesβ number of multiplexer channels. how many channels we got, periodt πlittle_endianβ indicating if the register is in little endian. byte order check, we love a flag that's honest πwrite_onlyβ reading the register is not allowed by hardware. so don't try to read it, the hardware said no πidleβ value to write to the mux when idle. the mux's little rest state π΄idle_in_useβ indicate if idle value is in use. is the idle value actually doing something or is it just sitting there π₯regβ virtual address of the register to switch channel. this is the register, the main character βreg_sizeβ register size in bytes. how chunky the register is π§
π¦ SEE ALSO π¦
- Kernel file
./include/linux/platform_data/i2c-mux-reg.hβ go look at the header bestie, iykyk
and that's the whole page, we ate and left no crumbs π
π cute lil sign-off: this one lives under ./include/linux/platform_data, and it's dated October 2026. screenshot it, frame it, whatever. bye bestie! πβ¨
π¦ 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