Searched refs:n_buttons (Results 1 – 4 of 4) sorted by relevance
100 int n_buttons = 0; in surface3_button_device_create() local122 gpio_keys[n_buttons].type = info->event_type; in surface3_button_device_create()123 gpio_keys[n_buttons].code = info->event_code; in surface3_button_device_create()124 gpio_keys[n_buttons].gpio = gpio; in surface3_button_device_create()125 gpio_keys[n_buttons].active_low = info->active_low; in surface3_button_device_create()126 gpio_keys[n_buttons].desc = info->name; in surface3_button_device_create()127 gpio_keys[n_buttons].wakeup = info->wakeup; in surface3_button_device_create()128 n_buttons++; in surface3_button_device_create()131 if (n_buttons == 0) { in surface3_button_device_create()137 gpio_keys_pdata->nbuttons = n_buttons; in surface3_button_device_create()
71 int n_buttons = 0; in soc_button_device_create() local77 n_buttons++; in soc_button_device_create()81 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()87 n_buttons = 0; in soc_button_device_create()97 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()98 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()99 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()100 gpio_keys[n_buttons].active_low = 1; in soc_button_device_create()101 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()102 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()[all …]
162 int *n_buttons, n_devs; in tgfx_attach() local177 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()202 if (n_buttons[i] < 1) in tgfx_attach()205 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()206 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()218 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_attach()226 input_dev->id.product = n_buttons[i]; in tgfx_attach()238 for (j = 0; j < n_buttons[i]; j++) in tgfx_attach()
92 int n_buttons; member584 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_attach()639 for (j = 0; j < db9_mode->n_buttons; j++) in db9_attach()