s3c_i2c0_set_platdata(9)
π 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. orNULLif 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
- 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