Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/platform/x86/
Dsurface3_button.c95 struct gpio_keys_platform_data *gpio_keys_pdata; in surface3_button_device_create() local
100 gpio_keys_pdata = devm_kzalloc(&client->dev, in surface3_button_device_create()
101 sizeof(*gpio_keys_pdata) + in surface3_button_device_create()
104 if (!gpio_keys_pdata) in surface3_button_device_create()
107 gpio_keys = (void *)(gpio_keys_pdata + 1); in surface3_button_device_create()
132 gpio_keys_pdata->buttons = gpio_keys; in surface3_button_device_create()
133 gpio_keys_pdata->nbuttons = n_buttons; in surface3_button_device_create()
134 gpio_keys_pdata->rep = autorepeat; in surface3_button_device_create()
142 error = platform_device_add_data(pd, gpio_keys_pdata, in surface3_button_device_create()
143 sizeof(*gpio_keys_pdata)); in surface3_button_device_create()
[all …]
/Linux-v5.10/drivers/input/misc/
Dsoc_button_array.c128 struct gpio_keys_platform_data *gpio_keys_pdata; in soc_button_device_create() local
136 gpio_keys_pdata = devm_kzalloc(&pdev->dev, in soc_button_device_create()
137 sizeof(*gpio_keys_pdata) + in soc_button_device_create()
140 if (!gpio_keys_pdata) in soc_button_device_create()
143 gpio_keys = (void *)(gpio_keys_pdata + 1); in soc_button_device_create()
190 gpio_keys_pdata->buttons = gpio_keys; in soc_button_device_create()
191 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()
192 gpio_keys_pdata->rep = autorepeat; in soc_button_device_create()
196 gpio_keys_pdata, in soc_button_device_create()
197 sizeof(*gpio_keys_pdata)); in soc_button_device_create()
[all …]