Lines Matching refs:buttons
42 static struct gpio_keys_button buttons[6];
45 memset(buttons, 0, sizeof(buttons));
48 for (i = 0; i < ARRAY_SIZE(buttons); i++) {
49 buttons[i].code = BTN_0 + i;
50 buttons[i].gpio = ucb->gpio.base + i;
51 buttons[i].type = EV_KEY;
52 buttons[i].can_disable = true;
55 keys.buttons = buttons;
56 keys.nbuttons = ARRAY_SIZE(buttons);