STRUCT SPI_GPIO_PLATFORM_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– STRUCT SPI_GPIO_PLATFORM_DATA(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct spi_gpio_platform_data, and yes, the title up top gets truncated to struct spi_...latform_data(9) because even the manpage gods run out of column space. iconic, honestly.


🌸 NAME 🌸

struct spi_gpio_platform_data β€” the parameter struct for a bitbanged SPI host controller πŸŽ€

like… it's the lil bundle of info you hand over when you want SPI done in software, by wiggling GPIO pins. main character energy fr fr.


✨ SYNOPSIS ✨

struct spi_gpio_platform_data {
    u16 num_chipselect;
};

that's the whole struct. one member. no cap, it's tiny and I'm obsessed with how unbothered it is. πŸ¦‹


🌈 Members 🌈

  • num_chipselect β€” how many target devices to allow πŸ’… that's it, that's the whole vibe check: you're saying "hey, this many target devices max, k?"

type: u16


πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./include/linux/spi/spi_gpio.h β€” go read it, iykyk 🫢

and that's the page!! go be a bitbanged SPI host controller about it. slay. πŸ’œ

β€” shipped from the ./include/linux/spi directory, in the Kernel API Manual, dated October 2026, titled struct spi_...latform_data(9) ⭐ mwah, bye bestie πŸŽ€

πŸ“¦ where this page comes from