Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/input/misc/
Dsoc_button_array.c141 int n_buttons = 0; in soc_button_device_create() local
145 n_buttons++; in soc_button_device_create()
149 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
155 n_buttons = 0; in soc_button_device_create()
181 gpio_keys[n_buttons].irq = irq; in soc_button_device_create()
182 gpio_keys[n_buttons].gpio = -ENOENT; in soc_button_device_create()
184 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
187 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
188 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
189 gpio_keys[n_buttons].active_low = info->active_low; in soc_button_device_create()
[all …]
/linux-6.1.9/drivers/input/joystick/
Dturbografx.c147 int *n_buttons, n_devs; in tgfx_attach() local
162 n_buttons = tgfx_cfg[port_idx].args + 1; in tgfx_attach()
187 if (n_buttons[i] < 1) in tgfx_attach()
190 if (n_buttons[i] > ARRAY_SIZE(tgfx_buttons)) { in tgfx_attach()
191 printk(KERN_ERR "turbografx.c: Invalid number of buttons %d\n", n_buttons[i]); in tgfx_attach()
203 "TurboGraFX %d-button Multisystem joystick", n_buttons[i]); in tgfx_attach()
211 input_dev->id.product = n_buttons[i]; in tgfx_attach()
223 for (j = 0; j < n_buttons[i]; j++) in tgfx_attach()
Ddb9.c77 int n_buttons; member
569 if (mode < 1 || mode >= DB9_MAX_PAD || !db9_modes[mode].n_buttons) { in db9_attach()
624 for (j = 0; j < db9_mode->n_buttons; j++) in db9_attach()