devm_regmap_init_spmi_ext(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devm_regmap_init_spmi_ext β€” Create managed regmap for Ext register space

okay so bestie, welcome to the Kernel API Manual ✨ (that's the manual this page lives in, iykyk). Buckle up, we're making a regmap and it's gonna be managed, which is the glow-up you want. πŸŽ€


🌸 NAME 🌸

devm_regmap_init_spmi_ext β€” literally creates a managed regmap for Ext register space. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

devm_regmap_init_spmi_ext (dev , config );

no cap, that's it. two args, one iconic function. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the SPMI device you're gonna be interacting with. this is your main character. πŸ‘‘
  • config β€” the configuration for the register map. the ~aesthetic~ settings, if you will. πŸŽ€

πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• β€” the return value is gonna be an ERR_PTR if something goes wrong (😭 error era), or a valid pointer to a struct regmap if it slays (πŸ”₯). and the best part? the regmap gets automatically freed by the device management code. not me having to clean up manually… couldn't be me. πŸ’…βœ¨


🌈 SEE ALSO 🌈

the kernel file lives at ./include/linux and it is stacked with friends. go say hi to all of them, fr fr:

like… that's a whole friend group. obsessed. πŸ’–πŸ¦‹


aaaand that's the page bestie!! πŸŽ€ this lil beauty comes from ./include/linux and it's dated October 2026, so mark your calendar and stan. bye bestie, go init some regmaps responsibly πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from