devm_gpio_regmap_register(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_gpio_regmap_register(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” we're talking about devm_gpio_regmap_register(9) today and it's literally the resource-managed version of gpio_regmap_register(). slay.


✨ NAME ✨

devm_gpio_regmap_register β€” it's the resource-managed glow-up of gpio_regmap_register(), periodt.


πŸŽ€ SYNOPSIS πŸŽ€

struct gpio_regmap * devm_gpio_regmap_register (struct device *dev ,
const struct gpio_regmap_config *config );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the device that is registering this GPIO device. it's giving "main character device energy" πŸ’…
  • config β€” the configuration for gpio_regmap. yes bestie, this is where the setup lives πŸŽ€

🌸 DESCRIPTION 🌸

so this is the managed gpio_regmap_register. for a generic regmap GPIO device registered by this function, gpio_regmap_unregister is automatically called on driver detach. no cap β€” the cleanup is handled for you, automatic style. ✨

if you want more info, go see gpio_regmap_register β€” it's the non-managed sibling and it has the details. 🫢


πŸ”₯ RETURN πŸ”₯

it returns a pointer to the registered gpio_regmap β€” iconic β€” or an ERR_PTR error value if things go sideways. 😭


🌈 SEE ALSO 🌈


πŸ’Œ cute little sign-off: this page is from ./drivers/gpio, dated October 2026, and it's the manual for devm_gpio_regmap_register(9). bye bestie, go register some GPIOs responsibly πŸ’œ
πŸ“¦ where this page comes from