STRUCT SAMSUNG_KEYPAD_PLATDATA(9)
π 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 tomatrix_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, signaturevoid (*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
- 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