syscon_node_to_regmap(9)
π syscon_node_to_regmap π
okay bestie, welcome to this little page from the Kernel API Manual β itβs literally about syscon_node_to_regmap(9), and itβs giving βI get you a regmap or I create one,β which is honestly iconic. π«Άβ¨
β¨ NAME β¨
syscon_node_to_regmap β get or create a regmap for the specified syscon device node. periodt. π
πΈ SYNOPSIS πΈ
struct regmap * syscon_node_to_regmap (struct device_node *np );
π ARGUMENTS π
npβ device tree node. thatβs the node weβre working with, bestie. π
π¦ DESCRIPTION π¦
So hereβs the vibe: this gets a regmap for the specified device node. If thereβs not an existing regmap, then one is instantiated β but only if the node is a generic "syscon". that little condition is important, no cap. π
And highkey important: this function is safe to use for a syscon registered with of_syscon_register_regmap. slay. β¨
π RETURN π
- On success: a
regmapptr. π - On failure: a negative error code. π
π SEE ALSO π
- Kernel file
./drivers/mfd/syscon.c of_syscon_register_regmap(9)device_node_to_regmap(9)
mwah π this gem lives under source/version ./drivers/mfd, dated October 2026, and the page is syscon_node_to_regmap(9). go off, bestie. π
π¦ 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