1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef foorcmserverkeymaphfoo #define foorcmserverkeymaphfoo struct keycode { char *name; char *value; }; struct keymap { char *name; uint16_t rows; uint16_t cols; struct list_head list; struct keycode keycodes[]; }; struct keymap *find_keymap_by_name(struct device *dev, const char *name); int keymaps_load(struct device *device); #endif