STRUCT SAMSUNG_KEYPAD_PLATDATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct samsung_keypad_platdata(9) πŸ’–

okay so this is the Kernel API Manual page for struct samsung_keypad_platdata(9) β€” yes the title got chopped to struct samsu...pad_platdata(9) in the header, that's just how it renders, she's fine, she's iconic. bestie, we're talking platform device data for the Samsung Keypad, and it's giving "here's everything the driver needs to know about your keypad hardware" energy. let's get into it πŸŽ€


✨ NAME ✨

struct samsung_keypad_platdata β€” Platform device data for Samsung Keypad. that's it, that's the whole vibe πŸ’…


🌸 SYNOPSIS 🌸

struct samsung_keypad_platdata {
    const struct matrix_keymap_data *keymap_data;
    unsigned int rows;
    unsigned int cols;
    bool no_autorepeat;
    bool wakeup;
    void (*cfg_gpio)(unsigned int rows, unsigned int cols);
 };

look at her. six whole fields. no cap, every single one matters 🫢


πŸ¦‹ Members πŸ¦‹

  • keymap_data β€” pointer to matrix_keymap_data. that's your keymap hookup, the little map of which key lives where πŸ”₯
  • rows β€” number of keypad row supported. yep, rows. the horizontal situation ✨
  • cols β€” number of keypad col supported. and cols, the vertical situation. together they run the whole grid 🧚
  • no_autorepeat β€” disable key autorepeat. set this and the key does not keep repeating when you hold it down, she's one-and-done πŸ’€
  • wakeup β€” controls whether the device should be set up as wakeup source. literally the "can this keypad wake the system up" switch ⭐
  • cfg_gpio β€” configure the GPIO. it's a function pointer, signature void (*cfg_gpio)(unsigned int rows, unsigned int cols); β€” the driver calls back into this when it needs the GPIOs sorted out πŸ‘‘

🌈 Description 🌈

Initialisation data specific to either the machine or the platform for the device driver to use or call-back when configuring gpio.

so basically: this struct is the little care package the machine/platform hands over to the device driver so it knows what's up β€” and it also carries the callback the driver can invoke when it's time to configure the GPIO. main character energy for real πŸ’œ


πŸ“ SEE ALSO πŸ“

  • Kernel file ./include/linux/input/samsung-keypad.h β€” go read her, she's right there 🌸

and that's the whole page bestie!! mwah πŸ’–

source/version: ./include/linux/input Β· dated October 2026 Β· struct samsu...pad_platdata(9) β€” ok that's genuinely the last line, the truncation and all, I don't make the rules 😭🫢✨

πŸ“¦ where this page comes from