devm_cci_regmap_init_i2c(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– devm_cci_regmap_init_i2c(9) πŸ’–

okay so bestie, this page is from the Kernel API Manual, and it's literally the little helper that gives you a regmap for the cci_*() register access functions. main character energy fr fr ✨


🌸 NAME 🌸

devm_cci_regmap_init_i2c β€” Create regmap to use with cci_*() register access functions 🫢

✨ SYNOPSIS ✨

struct regmap * devm_cci_regmap_init_i2c (struct i2c_client *client , int reg_addr_bits );

πŸŽ€ ARGUMENTS πŸŽ€

  • client β€” the i2c_client to create the regmap for. that's the whole assignment, bestie πŸ’…
  • reg_addr_bits β€” register address width to use, and the values are 8 or 16. not me checking the width options for you 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

note the memory for the created regmap is devm managed, tied to the client. so it's giving responsible-resource-management energy β€” lowkey iconic, no cap 🧚

⭐ RETURN ⭐

0 on success or a negative error code on failure. that's the vibe check, periodt 😌

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ this page is from the Kernel API Manual, source path ./include/media, date/version text October 2026, and it's literally devm_cci_regmap_init_i2c(9) β€” slay and goodbye πŸ’œ

πŸ“¦ where this page comes from