Home
last modified time | relevance | path

Searched refs:n_buttons (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/drivers/input/misc/
Dsoc_button_array.c78 int n_buttons = 0; in soc_button_device_create() local
99 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
100 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
101 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
102 gpio_keys[n_buttons].active_low = 1; in soc_button_device_create()
103 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()
104 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
105 n_buttons++; in soc_button_device_create()
108 if (n_buttons == 0) { in soc_button_device_create()
114 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()
/linux-4.1.27/drivers/input/joystick/
Dturbografx.c159 static struct tgfx __init *tgfx_probe(int parport, int *n_buttons, int n_devs) in tgfx_probe() argument
196 if (n_buttons[i] < 1) in tgfx_probe()
199 if (n_buttons[i] > 6) { in tgfx_probe()
200 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_probe()
214 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_probe()
222 input_dev->id.product = n_buttons[i]; in tgfx_probe()
234 for (j = 0; j < n_buttons[i]; j++) in tgfx_probe()
Ddb9.c96 int n_buttons; member
566 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_probe()
633 for (j = 0; j < db9_mode->n_buttons; j++) in db9_probe()