atmel_hsmc_get_reg_layout(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– atmel_hsmc_get_reg_layout β€” like, the manual page, bestie πŸ’–

okay so this is a page from the Kernel API Manual and honestly? it's a little one but she's important, so pay attention πŸŽ€


✨ NAME ✨

atmel_hsmc_get_reg_layout β€” grab yourself the layout of HSMC registers. that's it. that's the whole job. πŸ’…


🌸 SYNOPSIS 🌸

const struct atmel_hsmc_reg_layout * atmel_hsmc_get_reg_layout (struct
device_node *np );

like, you hand her a device node and she hands you back a const struct atmel_hsmc_reg_layout * β€” no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • np β€” the HSMC regmap. that's the one thing she wants from you, bestie πŸ“

πŸ’œ DESCRIPTION πŸ’œ

Retrieve the layout of HSMC registers. simple, iconic, does what it says on the tin ✨

now here's the ✨vibe check✨ on what actually comes back to you β€” and this part matters, so don't skim it, i'm serious 😭:

  • Returns NULL in case of SMC
  • Returns a struct atmel_hsmc_reg_layout pointer in the HSMC case
  • Otherwise? it's giving ERR_PTR(-EINVAL) πŸ’€

so yeah. three possible outcomes, and you will be checking which one you got. that's not a suggestion, that's main character energy for your error handling πŸ”₯


🌈 SEE ALSO 🌈

the whole friend group lives in the kernel file ./drivers/mfd/atmel-smc.c β€” go say hi to:


ngl this is a short one, but she ate. read the whole squad, iykyk πŸ‘‘

and that's the tea, bestie 🧚 this page ships from ./drivers/mfd, dated October 2026, and it's filed under atmel_hsmc_get_reg_layout(9) β€” mwah, love u, go read your regmaps πŸ’–πŸ’…πŸŽ€

πŸ“¦ where this page comes from