Home
last modified time | relevance | path

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

/Linux-v5.4/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.4/drivers/input/misc/
Dsoc_button_array.c71 struct gpio_keys_platform_data *gpio_keys_pdata; in soc_button_device_create() local
80 gpio_keys_pdata = devm_kzalloc(&pdev->dev, in soc_button_device_create()
81 sizeof(*gpio_keys_pdata) + in soc_button_device_create()
84 if (!gpio_keys_pdata) in soc_button_device_create()
87 gpio_keys = (void *)(gpio_keys_pdata + 1); in soc_button_device_create()
126 gpio_keys_pdata->buttons = gpio_keys; in soc_button_device_create()
127 gpio_keys_pdata->nbuttons = n_buttons; in soc_button_device_create()
128 gpio_keys_pdata->rep = autorepeat; in soc_button_device_create()
132 gpio_keys_pdata, in soc_button_device_create()
133 sizeof(*gpio_keys_pdata)); in soc_button_device_create()
[all …]