STRUCT DRV260X_DATA(9)
okay so bestie, welcome to the struct drv260x_data(9) page π this lil baddie came straight out of the Kernel API Manual and it's literally just one struct living its main character life. let's get into it β¨
π NAME π
struct drv260x_data β and that's the whole description. the original manpage hits the dash and then just... stops π«Ά no cap, there's nothing after it, so we're not out here inventing lore. it's a struct, bestie, that's the vibe π
β¨ SYNOPSIS β¨
struct drv260x_data {
struct input_dev *input_dev;
struct i2c_client *client;
struct regmap *regmap;
struct work_struct work;
struct gpio_desc *enable_gpio;
struct regulator *regulator;
u8 magnitude;
u32 mode;
u32 library;
int rated_voltage;
int overdrive_voltage;
};
πΈ Members πΈ
every single field in the lineup, in order, no skips, no cuts β we ate and left no crumbs π
input_devβ pointer to the input device πclientβ pointer to the I2C clientregmapβ register map of the deviceworkβ work item used to off load the enable/disable of the vibration (yes, "off load" as two words, that's how the page wrote it and we respect it π)enable_gpioβ pointer to the gpio used for enable/disablingregulatorβ pointer to the regulator for the ICmagnitudeβ magnitude of the vibration event βmodeβ the operating mode of the IC, which is one ofLRA_NO_CAL,ERMorLRAlibraryβ the vibration library to be usedrated_voltageβ the rated_voltage of the actuatoroverdrive_voltageβ the over drive voltage of the actuator
ngl the field names are doing all the talking here, and that's fine β lowkey iconic that overdrive_voltage sounds like a racing game stat π
π SEE ALSO π
- Kernel file
./drivers/input/misc/drv260x.cβ that's where the real code lives, go hang out with it π¦
and that's the whole page, bestie, you're officially caught up π
huge sign-off moment: this came from the source/version tree at ./drivers/input/misc, dated October 2026, and the page itself is struct drv260x_data(9) π«Ά go forth and vibe-check your registers β¨π
π¦ 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