s3c_i2c0_set_platdata(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… s3c_i2c0_set_platdata β€” kernel API manual, section 9, bestie πŸ’…

ok so like. welcome to the s3c_i2c0_set_platdata(9) page, from the Kernel API Manual ✨ this is the whole vibe, let's go.


🌸 NAME 🌸

s3c_i2c0_set_platdata β€” sets the platform data for the i2c0 device πŸŽ€


✨ SYNOPSIS ✨

void s3c_i2c0_set_platdata (struct s3c2410_platform_i2c *i2c );

no cap, that's the whole signature. she's short and she knows it πŸ’…


🫢 ARGUMENTS 🫢

  • i2c β€” the platform data you're setting. or NULL if you want the default data instead. your call, bestie πŸ¦‹

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• this function registers the platform data you hand it so the i2c0 device can actually use it. and the way that it works is it copies the platform data β€” so the caller is fully allowed to use __initdata for their copy. iconic, honestly. you don't have to worry about it getting yanked out from under you 🫢✨

also, this call will set cfg_gpio if it is null, to the default platform implementation. so if you left that lil guy empty, she fills it in for you 🌈

and listen β€” any user of s3c_device_i2c0 should call this. literally even if it's with NULL. why? because you gotta make sure the device gets given the default platform data, since the driver will no longer carry defaults. so like. call it. even if you have nothing to say. fr fr πŸ’€ periodt.

⚠️ ngl the NULL part is not optional-optional β€” skipping the call entirely means nobody hands the device its defaults, and the driver isn't holding any for you anymore. so don't ghost this function πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./include/linux/platform_data/i2c-s3c2410.h
  • struct s3c2410_platform_i2c(9)

kiss kiss, that's the page πŸ’– this absolute baddie of a manpage lives in ./include/linux/platform_data and it was dated October 2026 β€” so like, future stuff, very main character energy πŸ‘‘β­ thanks for reading bestie, go call this function with NULL if you have to, mwah πŸ’œπŸ§š

πŸ“¦ where this page comes from