STRUCT ALTERA_SPI_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the bits_per_word values 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