STRUCT WS2401(9)
π¦ 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β abooltelling u if the internal backlight is being used. glow-up indicator, fr fr β¨
π₯ SEE ALSO π₯
- Kernel file
./drivers/gpu/drm/panel/panel-widechips-ws2401.c ws2401_get_modes(9)
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
- 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