ti_bandgap_validate(9)
β¨ ti_bandgap_validate(9) β¨
okay so bestie, welcome to this page from the Kernel API Manual β it's all about the tiny sanity-check helper ti_bandgap_validate, and it's giving βsmall function, big main character energyβ π
πΈ NAME πΈ
ti_bandgap_validate β helper to check the sanity of a struct ti_bandgap π«Ά
β¨ SYNOPSIS β¨
int ti_bandgap_validate (struct ti_bandgap *bgp , int id );
π ARGUMENTS π
bgpβ astruct ti_bandgappointer. That's the bandgap struct bestie is checking.idβ the bandgap sensor id. That's the sensor slot we're asking about.
π¦ DESCRIPTION π¦
This is the helper that checks if the bandgap pointer is valid and if the sensor id is also applicable. Basically a vibe check for the struct ti_bandgap pointer and the sensor id β no cap β¨
π RETURN π
0β no errors, we're slaying π₯-EINVALβ returned for an invalidbgppointer π-ERANGEβ returned ifidcannot indexbgpsensors π
π SEE ALSO π
Kernel file ./drivers/thermal/ti-soc-thermal/ti-bandgap.c β and the whole friend group:
ti_bandgap_readl(9)ti_bandgap_writel(9)macro to update bits.(9)ti_bandgap_power(9)ti_errata814_bandgap_read_temp(9)ti_bandgap_read_temp(9)ti_bandgap_talert_irq_handler(9)ti_bandgap_tshut_irq_handler(9)ti_bandgap_adc_to_mcelsius(9)ti_bandgap_read_counter(9)ti_bandgap_read_counter_delay(9)ti_bandgap_read_update_interval(9)ti_bandgap_write_counter_delay(9)ti_bandgap_write_counter(9)ti_bandgap_write_update_interval(9)ti_bandgap_read_temperature(9)ti_bandgap_set_sensor_data(9)ti_bandgap_get_sensor_data(9)ti_bandgap_force_single_read(9)ti_bandgap_set_continuous_mode(9)ti_bandgap_get_trend(9)ti_bandgap_tshut_init(9)ti_bandgap_talert_init(9)ti_bandgap_build(9)
xoxo bestie, this page comes from ./drivers/thermal/ti-soc-thermal, dated October 2026, and it's literally still titled ti_bandgap_validate(9) β periodt π
π
π¦ 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