STRUCT WS2401(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct ws2401(9) β€” Kernel API Manual πŸ¦‹

okay so bestie, we're in the struct ws2401(9) manual page and honestly? it's giving "one little struct holding the whole vibe together." no cap. this is the state container for a panel controlled by the WS2401 controller, and yes u read that right πŸ’…


✨ NAME ✨

struct ws2401 β€” the state container for a panel that's controlled by the WS2401 controller. that's it, that's the whole job, and it ate πŸŽ€


🌸 SYNOPSIS 🌸

struct ws2401 {
    struct device *dev;
    struct mipi_dbi dbi;
    struct drm_panel panel;
    u32 width;
    u32 height;
    struct gpio_desc *reset;
    struct regulator_bulk_data regulators[2];
    bool internal_bl;
 };

like… look at her. iconic. every field is a little piece of the panel's whole personality 🫢


πŸ‘‘ Members πŸ‘‘

bestie this is the part where we meet the cast. main character energy for every single one.

  • dev β€” the container device. it's the whole device this struct lives inside, the literal home address 🏠
  • dbi β€” the DBI bus abstraction handle. that's the bus situation, abstracted and ready to go 🚌
  • panel β€” the DRM panel instance for this device. the actual panel representation, the star of the show ⭐
  • width β€” the width of this panel, measured in mm. yes, millimeters, we're being precise πŸ’…
  • height β€” the height of this panel, also in mm. same energy, other axis πŸ“
  • reset β€” the reset GPIO line. one little poke and she starts over πŸ™ˆ
  • regulators β€” the VCCIO and VIO supply regulators. that's a [2]-sized array because there are literally two of them, powering the whole situation ⚑
  • internal_bl β€” a bool telling u if the internal backlight is being used. glow-up indicator, fr fr ✨

πŸ”₯ SEE ALSO πŸ”₯

go read those next, iykyk πŸ‘€


k bye bestie, this page came from ./drivers/gpu/drm/panel, dated October 2026, and it's filed under struct ws2401(9) β€” mwah πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from