Lines Matching refs:n_buttons
141 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()
190 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()
191 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
193 gpio_keys[n_buttons].debounce_interval = 50; in soc_button_device_create()
194 n_buttons++; in soc_button_device_create()
197 if (n_buttons == 0) { in soc_button_device_create()
203 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()