si476x_core..._to_revision(9)
π si476x_core_fwver_to_revision β from the Kernel API Manual, bestie
okay so picture this: it's the <rainbow>Kernel API Manual</rainbow> and today's main character is a little function called si476x_core_fwver_to_revision. yes that's a mouthful. no we're not shortening it. it's iconic and it knows it π
β¨ NAME β¨
si476x_core_fwver_to_revision β that's it, that's the name, she's mysterious and gives nothing else away π
πΈ SYNOPSIS πΈ
int si476x_core_fwver_to_revision (struct si476x_core *core , int func ,
int major , int minor1 , int minor2 );
look at her. five args and zero chill. let's break it down π«Ά
π¦ ARGUMENTS π¦
coreβ the core device structure. this is the whole vibe, the main character struct, everything runs through her.funcβ picks which boot function of the device we're talking about, and the options are listed with a*_prefix situation:*_BOOTLOADERβ Boot loader*_FM_RECEIVERβ FM receiver*_AM_RECEIVERβ AM receiver*_WB_RECEIVERβ Weatherband receiver
majorβ the firmware major numberminor1β the firmware first minor number (yes there are two minors, keep up π)minor2β the firmware second minor number
π DESCRIPTION π
so what does she actually do? she converts a chip's firmware version number into an offset β and that offset is later gonna be used as the offset in the "vtable" of tuner functions. it's giving "translator between two friend groups." lowkey essential. π
and the tea on return values:
this function returns a positive offset in case of success, and a -1 in case of failure. that's it. no in-between. bestie either slays or she doesn't π
π SEE ALSO π
Kernel file ./drivers/mfd/si476x-i2c.c, plus the whole friend group β go say hi:
si476x_core_config_pinmux(9)si476x_core_start(9)si476x_core_stop(9)si476x_core_set_power_state(9)si476x_core_report_drainer_stop(9)si476x_core_start_rds_drainer_once(9)si476x_core_drain_rds_fifo(9)si476x_core_pronounce_dead(9)si476x_core_i2c_xfer(9)si476x_core_get_status(9)si476x_core_get_and_signal_status(9)si476x_core_get_revision_info(9)
okay that's the whole page, mwah π this came to you from ./drivers/mfd, dated October 2026, and it's si476x_core..._to_revision(9) forever and always. go forth and convert those firmware versions, queen πβ
π¦ 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