devm_regmap_init_spmi_base(9)
π β¨ 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:
struct reg_default(9)struct reg_sequence(9)regmap_read_poll_timeout(9)regmap_read_poll_timeout_atomic(9)regmap_field_read_poll_timeout(9)struct regmap_range(9)struct regmap_access_table(9)struct regmap_config(9)struct regmap_range_cfg(9)struct regmap_sdw_mbq_cfg(9)struct regmap_bus(9)regmap_init(9)regmap_init_i2c(9)regmap_init_mdio(9)regmap_init_sccb(9)regmap_init_slimbus(9)regmap_init_spi(9)regmap_init_spmi_base(9)regmap_init_spmi_ext(9)regmap_init_w1(9)regmap_init_mmio_clk(9)regmap_init_mmio(9)regmap_init_ac97(9)regmap_init_sdw(9)regmap_init_sdw_mbq(9)regmap_init_sdw_mbq_cfg(9)regmap_init_i3c(9)regmap_init_spi_avmm(9)regmap_init_fsi(9)devm_regmap_init(9)devm_regmap_init_i2c(9)devm_regmap_init_mdio(9)devm_regmap_init_sccb(9)devm_regmap_init_spi(9)devm_regmap_init_spmi_ext(9)devm_regmap_init_w1(9)devm_regmap_init_mmio_clk(9)devm_regmap_init_mmio(9)devm_regmap_init_ac97(9)devm_regmap_init_sdw(9)devm_regmap_init_sdw_mbq(9)devm_regmap_init_sdw_mbq_cfg(9)devm_regmap_init_slimbus(9)devm_regmap_init_i3c(9)devm_regmap_init_spi_avmm(9)devm_regmap_init_fsi(9)struct reg_field(9)struct regmap_irq_type(9)struct regmap_irq(9)struct regmap_irq_chip(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms