Lines Matching refs:n_buttons
130 int n_buttons = 0; in soc_button_device_create() local
134 n_buttons++; in soc_button_device_create()
138 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
144 n_buttons = 0; in soc_button_device_create()
169 gpio_keys[n_buttons].irq = irq; in soc_button_device_create()
170 gpio_keys[n_buttons].gpio = -ENOENT; in soc_button_device_create()
172 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
175 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
176 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
177 gpio_keys[n_buttons].active_low = info->active_low; in soc_button_device_create()
178 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()
179 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
181 gpio_keys[n_buttons].debounce_interval = 50; in soc_button_device_create()
182 n_buttons++; in soc_button_device_create()
185 if (n_buttons == 0) { in soc_button_device_create()
191 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()