Lines Matching refs:n_buttons
164 int n_buttons = 0; in soc_button_device_create() local
168 n_buttons++; in soc_button_device_create()
172 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
178 n_buttons = 0; in soc_button_device_create()
211 gpio_keys[n_buttons].irq = irq; in soc_button_device_create()
212 gpio_keys[n_buttons].gpio = -ENOENT; in soc_button_device_create()
214 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
217 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
218 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
219 gpio_keys[n_buttons].active_low = info->active_low; in soc_button_device_create()
220 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()
221 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
223 gpio_keys[n_buttons].debounce_interval = 50; in soc_button_device_create()
224 n_buttons++; in soc_button_device_create()
227 if (n_buttons == 0) { in soc_button_device_create()
233 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()