mmc_regulator_set_ocr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Bestie, welcome to mmc_regulator_set_ocr(9) β€” this is the Kernel API Manual page, and we're folding that manual name in right here so nobody has to copy the header line. Periodt. πŸ’…βœ¨

✨ NAME ✨

mmc_regulator_set_ocr β€” set regulator to match host->ios voltage πŸŽ€

🌸 SYNOPSIS 🌸

int mmc_regulator_set_ocr (struct mmc_host *mmc , struct regulator
       *supply , unsigned short vdd_bit );

πŸ’– ARGUMENTS πŸ’–

Here's the cast, no cap:

  • mmc β€” the host to regulate πŸ‘‘
  • supply β€” regulator to use πŸ”Œ
  • vdd_bit β€” zero for power off, else a bit number (host->ios.vdd) ⚑

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns zero on success, else negative errno. That's literally it β€” success is a cute little zero, and failure throws you a negative errno. 😭

MMC host drivers may use this to enable or disable a regulator using a particular supply voltage. This would normally be called from the set_ios method. It's giving power-management main character energy, fr fr. πŸ”₯

🌈 SEE ALSO 🌈

Go hang out with these other pages, iykyk:


Cute sign-off time 🫢: this page's source/version tag is ./drivers/mmc/core, and the date on it is October 2026. Bye bestie, go regulate something iconic πŸ’œπŸ§šβ­

πŸ“¦ where this page comes from