thc_i2c_subip_regs_restore(9)
π thc_i2c_subip_regs_restore β like, the glow-up arc for your I2C registers
okay bestie, welcome to the Kernel API Manual entry for thc_i2c_subip_regs_restore π this one's short and sweet and honestly kind of iconic β it's the "put it back the way you found it" function for the THC I2C subsystem. iykyk.
πΈ NAME πΈ
thc_i2c_subip_regs_restore β restores the THC I2C subsystem registers straight from the THC device context, no cap β¨
π SYNOPSIS π
int thc_i2c_subip_regs_restore (struct thc_device *dev );
π¦ ARGUMENTS π¦
devβ the pointer of the THC private device context. that's your main character right there, she's holding all the state π«Ά
β RETURN β
0on success β slay, everybody go home π- other error codes on failed β not the vibe, check your codes π
fr fr, this one just hands you back a plain int, so please actually look at it instead of ignoring it like a group chat notification π
π SEE ALSO π
the kernel file lives right here in all its glory:
./drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c
and here's the whole friend group, every single one, no gatekeeping:
thc_clear_state(9)thc_dev_init(9)thc_tic_pio_read(9)thc_tic_pio_write(9)thc_tic_pio_write_and_read(9)thc_interrupt_config(9)thc_int_trigger_type_select(9)thc_interrupt_enable(9)thc_interrupt_quiesce(9)thc_set_pio_interrupt_support(9)thc_ltr_config(9)thc_change_ltr_mode(9)thc_ltr_unconfig(9)thc_int_cause_read(9)thc_interrupt_handler(9)thc_port_select(9)thc_spi_read_config(9)thc_spi_write_config(9)thc_spi_input_output_address_config(9)thc_i2c_subip_init(9)thc_i2c_subip_regs_save(9)thc_i2c_set_rx_max_size(9)thc_i2c_rx_max_size_enable(9)thc_i2c_set_rx_int_delay(9)thc_i2c_rx_int_delay_enable(9)
okay that's the whole page, mwah π this little cutie comes from ./drivers/hid/intel-thc-hid/in... (yes the path gets cut off in the footer, she's mysterious like that π) and she's dated October 2026, filed under thc_i2c_subip_regs_restore(9). go restore those registers bestie, you got this πβ¨
π¦ 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