Home
last modified time | relevance | path

Searched refs:gpio_keys_pdata (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/platform/x86/
Dsurface3_button.c99 struct gpio_keys_platform_data *gpio_keys_pdata; in surface3_button_device_create() local
104 gpio_keys_pdata = devm_kzalloc(&client->dev, in surface3_button_device_create()
105 sizeof(*gpio_keys_pdata) + in surface3_button_device_create()
108 if (!gpio_keys_pdata) in surface3_button_device_create()
111 gpio_keys = (void *)(gpio_keys_pdata + 1); in surface3_button_device_create()
136 gpio_keys_pdata->buttons = gpio_keys; in surface3_button_device_create()
137 gpio_keys_pdata->nbuttons = n_buttons; in surface3_button_device_create()
138 gpio_keys_pdata->rep = autorepeat; in surface3_button_device_create()
146 error = platform_device_add_data(pd, gpio_keys_pdata, in surface3_button_device_create()
147 sizeof(*gpio_keys_pdata)); in surface3_button_device_create()
[all …]
/Linux-v4.19/drivers/input/misc/
Dsoc_button_array.c70 struct gpio_keys_platform_data *gpio_keys_pdata; in soc_button_device_create() local
79 gpio_keys_pdata = devm_kzalloc(&pdev->dev, in soc_button_device_create()
80 sizeof(*gpio_keys_pdata) + in soc_button_device_create()
83 if (!gpio_keys_pdata) in soc_button_device_create()
86 gpio_keys = (void *)(gpio_keys_pdata + 1); in soc_button_device_create()
113 gpio_keys_pdata->buttons = gpio_keys; in soc_button_device_create()
114 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()
115 gpio_keys_pdata->rep = autorepeat; in soc_button_device_create()
123 error = platform_device_add_data(pd, gpio_keys_pdata, in soc_button_device_create()
124 sizeof(*gpio_keys_pdata)); in soc_button_device_create()
[all …]