Lines Matching refs:n_buttons
71 int n_buttons = 0; in soc_button_device_create() local
77 n_buttons++; in soc_button_device_create()
81 sizeof(*gpio_keys) * n_buttons, in soc_button_device_create()
87 n_buttons = 0; in soc_button_device_create()
97 gpio_keys[n_buttons].type = info->event_type; in soc_button_device_create()
98 gpio_keys[n_buttons].code = info->event_code; in soc_button_device_create()
99 gpio_keys[n_buttons].gpio = gpio; in soc_button_device_create()
100 gpio_keys[n_buttons].active_low = 1; in soc_button_device_create()
101 gpio_keys[n_buttons].desc = info->name; in soc_button_device_create()
102 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
104 gpio_keys[n_buttons].debounce_interval = 50; 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()