STRUCT DRV260X_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 client
  • regmap β€” register map of the device
  • work β€” 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/disabling
  • regulator β€” pointer to the regulator for the IC
  • magnitude β€” magnitude of the vibration event ⭐
  • mode β€” the operating mode of the IC, which is one of LRA_NO_CAL, ERM or LRA
  • library β€” the vibration library to be used
  • rated_voltage β€” the rated_voltage of the actuator
  • overdrive_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