si476x_core..._to_revision(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 number
  • minor1 β€” 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:


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