mmc_ocrbitnum_to_vdd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– mmc_ocrbitnum_to_vdd πŸ’–

okay so bestie, welcome to the Kernel API Manual corner where we translate one lil OCR bit number into its voltage vibe. This is mmc_ocrbitnum_to_vdd(9), and it’s giving β€œsmall helper, big regulator energy” ✨.

🌸 NAME 🌸

mmc_ocrbitnum_to_vdd β€” convert a OCR bit number to its voltage πŸ’…

✨ SYNOPSIS ✨

int mmc_ocrbitnum_to_vdd (int vdd_bit , int *min_uV , int *max_uV );

πŸŽ€ ARGUMENTS πŸŽ€

  • vdd_bit β€” the OCR bit number, aka the lil number we’re converting.
  • min_uV β€” minimum voltage value (mV) 🫢
  • max_uV β€” maximum voltage value (mV) 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this function returns the voltage range according to the provided OCR bit number. That’s the whole assignment, no cap. If conversion is not possible, a negative errno value is returned 😭 β€” so watch for that negative signal instead of a happy voltage range.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/mmc/core/regulator.c is where the lore lives, and here’s the whole bestie lineup:


and that’s the whole page, bestie πŸŽ€ β€” signed off from ./drivers/mmc/core, dated October 2026, and obvi titled mmc_ocrbitnum_to_vdd(9) πŸ’–βœ¨

πŸ“¦ where this page comes from