devm_regmap_init_spmi_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’…βœ¨ devm_regmap_init_spmi_base βœ¨πŸ’…

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” this one is a short one, so grab your matcha and let's go, because we're making a managed regmap for the Base register space and it's gonna be iconic 🫢


🌸 NAME 🌸

devm_regmap_init_spmi_base β€” Create managed regmap for Base register space πŸ’–


🧚 SYNOPSIS 🧚

devm_regmap_init_spmi_base (dev , config );

that's it. that's the whole vibe. two args, no cap ✨


πŸ‘‘ ARGUMENTS πŸ‘‘

  • dev β€” the SPMI device you're gonna be interacting with πŸ’« like, this is the whole main character of the operation.
  • config β€” the configuration for the register map πŸŽ€ your lil blueprint, your settings, your whole setup.

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea, bestie: the return value is gonna be an ERR_PTR on error, or a valid pointer to a struct regmap 🌈

and the literal best part? the regmap gets automatically freed by the device management code πŸ’… like it handles its own cleanup, no manual teardown arc needed, we love a low-maintenance icon πŸ‘‘

ngl that's the entire description β€” this function is short and it knows it ✨ don't go looking for extra lore that isn't there πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

the friendship circle is huge, so buckle up πŸ¦‹ β€” also peep the kernel file ./include/linux/regmap.h:


and that's the whole page, bestie πŸ’« this masterpiece lives in ./include/linux and slayed its way into existence in October 2026 πŸ—“οΈβœ¨ ty for reading, ily, go write some registers πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from