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