STRUCT ALTERA_SPI_PLATFORM_DATA(9)
π STRUCT ALTERA_SPI_PLATFORM_DATA(9) π
okay so bestie, quick lil intro before we get into it: this is a page from the Kernel API Manual, and the star of the show is struct altera_spi_platform_data β literally just the platform data for the Altera SPI driver. that's the whole vibe. it holds all the setup info the driver needs so it knows how to behave when it gets probed. iykyk π¦
β¨ NAME β¨
struct altera_spi_platform_data β platform data of the Altera SPI driver π
π SYNOPSIS π
here's the whole struct, copy-paste energy, no cap:
struct altera_spi_platform_data {
u16 mode_bits;
u16 num_chipselect;
u32 bits_per_word_mask;
u16 num_devices;
struct spi_board_info *devices;
};
look at her. five fields. main character energy fr fr π
π§ MEMBERS π§
mode_bitsβ the mode bits of the SPI host. that's it, that's the field β¨num_chipselectβ the number of chipselects. how many of them we're working with πbits_per_word_maskβ a bitmask of all thebits_per_wordvalues that are supported for transfers π«Άnum_devicesβ the number of devices that shall be added when the driver is probed. count 'em π₯devicesβ the actual devices to add. the real ones. the whole point ππ
π SEE ALSO π
- Kernel file
./include/linux/spi/altera.hβ go read it bestie, it's giving source of truth β
lowkey a reminder that this page says nothing about what happens if you get these values wrong, bestie β the page just lists the fields, so don't come for me if you fill num_devices with nonsense π
and that's the whole page!! π this lil gem comes to you from ./include/linux/spi, dated October 2026, and the header/footer name is struct alte...latform_data(9) (yes, the truncation is iconic, we don't question it π). mwah, go forth and probe responsibly ππ§π
π¦ 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