Lines Matching defs:pdata
13 * @pdata: the platform data used for the new device
16 * Makes a copy of pdata and pdata->leds and registers a new leds-gpio device
17 * with the result. This allows to have pdata and pdata-leds in .init.rodata
24 int id, const struct gpio_led_platform_data *pdata)
27 struct gpio_led_platform_data _pdata = *pdata;
29 if (!pdata->num_leds)
32 _pdata.leds = kmemdup(pdata->leds,
33 pdata->num_leds * sizeof(*pdata->leds), GFP_KERNEL);